.NET has System.Uri for Uris and System.IO.FileInfo for file paths. I am looking for classes which are traditionally object oriented in that they specify both meaning and behavior for the string which is used in the object's construction. What other useful string encapsulation classes exist?
Things such as regular expressions and StringBuilders are useful for the gross manipulation of strings but they aren't what I'm looking for.
Maybe System.Security.SecureString for strings which you do not want to be available in public memory.
using (System.Security.SecureString password = new System.Security.SecureString())
{
password.AppendChar('s');
password.AppendChar('e');
password.AppendChar('c');
password.AppendChar('r');
password.AppendChar('e');
password.AppendChar('t');
password.MakeReadOnly();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With