Skip to content

Instantly share code, notes, and snippets.

@danstuken
Created May 13, 2011 09:37
Show Gist options
  • Save danstuken/970261 to your computer and use it in GitHub Desktop.
Save danstuken/970261 to your computer and use it in GitHub Desktop.
uppercase first char in string
public static string ToBindingTypeName(this string bindingName)
{
var firstChar = new string(new[] {bindingName.First()}).ToUpper();
return firstChar + new string(bindingName.Skip(1).ToArray());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment