String can be empty so return early if so

This commit is contained in:
de4dot 2012-11-06 01:59:40 +01:00
parent c8039d249e
commit f5ec3e2a27
2 changed files with 3 additions and 1 deletions

View File

@ -127,6 +127,8 @@ namespace de4dot.code.renamer {
}
protected static string upperFirst(string s) {
if (string.IsNullOrEmpty(s))
return string.Empty;
return s.Substring(0, 1).ToUpperInvariant() + s.Substring(1);
}
}

2
dot10

@ -1 +1 @@
Subproject commit d7ccb50d4ea85a48c05132dff8ae1e38c4dcbba2
Subproject commit 47d3c156d6b725cc7d020dfcd8b17a025205985f