To uppercase the first letter of each word in C# and VB.NET you can use the following snippet.
Sample C#
public static string ToTitleCase(string input) { return CultureInfo.CurrentCulture.TextInfo.ToTitleCase(input); }
Sample VB.NET
Public Shared Function ToTitleCase(input As String) As String Return CultureInfo.CurrentCulture.TextInfo.ToTitleCase(input) End Function
RT @CodeSnippetsNET: How to uppercase the first letter of each word in C# and #VB .NET #dotnet #csharp #visualbasic http://t.co/7kOLnHPPy0
RT @CodeSnippetsNET: How to uppercase the first letter of each word in C# and #VB .NET #dotnet #csharp #visualbasic http://t.co/7kOLnHPPy0
RT @CodeSnippetsNET: How to uppercase the first letter of each word in C# and #VB .NET #dotnet #csharp #visualbasic http://t.co/7kOLnHPPy0
RT @CodeSnippetsNET: How to uppercase the first letter of each word in C# and #VB .NET #dotnet #csharp #visualbasic http://t.co/7kOLnHPPy0