Select Page

C# Extension Methods

By using the this keyword you can add to (extend) any class, even sealed classes. So public static string ToTitleCase(this string value) { … } allows you to do the following; string state = “south west australia”;...
%d bloggers like this: