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
.NET strings are stored with the length pre-computed and stored at the start of the internal structure, so the .Length property simply fetches that value, making it an O(1) function.