String Articles

C# Custom Number Formatting

Very often the inbuilt numerical formatting in C# will be insufficent and you will want to apply the custom formatting for your numbers. The String.Format method is very flexible and can be used to apply custom formatting rules. The # character informs the Format method how to format the numerical value, for example to forma […]

Read more

Strings are Immutable!

Working with strings is a common task in most apps but there are several ‘gotchas’ that can arise due to the immutable nature of a  String in .NET. Immutable simply means that once created it doesn’t change. This seems strange at first since the value of a string variable can indeed be altered : string […]

Read more