c# string max length code example
Example 1: string length c#
string name = "Anthony";
int nameLength = name.Length;
Console.WriteLine("The name " + name + " contains " + nameLength + "letters.");
Example 2: c# guid length
Guid.NewGuid().ToString() => 36 characters (Hyphenated)
e.g. 12345678-1234-1234-1234-123456789abc