Performing common string operations.
The .NET Framework is essential a huge repository of reusable classes that provide robust functionality organized by various namespaces.
For example, the String namespace allows developers to easily and safely manipulate strings in a variety of ways.
First, I’ll show I perform such basic string operations using my name.
When needing to work with special characters, simply use one of the many literal to control layout of the strings.
Also, it’s very simple to build strings out of other strings.
Comparing string value is another useful tool provided by the String namespace.
It’s important to remember the immutability of String objects as illustrated by this example.
While technically in the Text namespace, StringBuilder provides a very light weight alternative when using strings in scenarios where very little functionality is needed.