string是String的别名,在使用时基本没有区别。 把字符串当对象时使用string,把字符当类时使用String。 string是C#的保留关键字,所以变量命名不可以用string,但是可以使用String。