📜  如何在c#代码示例中获取字符串的长度

📅  最后修改于: 2022-03-11 14:48:47.751000             🧑  作者: Mango

代码示例4
string name = "a622AgIdZg32glo3s5ndsS7N7T233U6AWOKp5VWbevkd6xog7gbaBe3xdf3fXPP";
int nameLength = name.Length;
Console.WriteLine("The name " + name + " contains " + nameLength + "letters.");