ChangeCase
<System.Runtime.CompilerServices.Extension()> _ Public Class MyExtension <System.Runtime.CompilerServices.Extension()> _ Shared Function ChangeCase(ByVal source As String) As String Return New System.Globalization.CultureInfo("en-US").TextInfo.ToTitleCase(source) End Function End ClassExample:
todo
Description
Change the text to TitleCase using the en-US culture
Details
- Author: unkown
- Submitted on: 21-8-2007 11:46:57
- Language: VB
- Type: System.String
- Views: 2352
Double click on the code to select all.