Add project files.
This commit is contained in:
parent
4db0bf9298
commit
cb8dd0eb76
221 changed files with 109953 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
namespace LearningChineseSimplified.ExtensionMethods
|
||||
{
|
||||
public static class StringExtensions
|
||||
{
|
||||
public static string ToTitleCase(this string input)
|
||||
{
|
||||
char firstLetter = input[0];
|
||||
firstLetter = char.ToUpper(firstLetter);
|
||||
|
||||
string restOfString = input.Substring(1, input.Length - 1);
|
||||
|
||||
return firstLetter + restOfString;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue