I\'m wondering if string.Length in C# is an instant variable. By instant variable I mean, when I create the string:
string.Length
string A = \"\"; A = \"Som
The length of the string is not computed, it is known at construction time. Since String is immutable, there will be no need for calculating it later.
A .NET string is stored as a field containing the count of characters, and a corresponding series of unicode characters.