Tutorial by Examples

In C# (and .NET) a string is represented by class System.String. The string keyword is an alias for this class. The System.String class is immutable, i.e once created its state cannot be altered. So all the operations you perform on a string like Substring, Remove, Replace, concatenation using + o...
Immutable types are types that when changed create a new version of the object in memory, rather than changing the existing object in memory. The simplest example of this is the built-in string type. Taking the following code, that appends " world" onto the word "Hello" string ...

Page 1 of 1