且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#创建的字符串(指定长度)

更新时间:2023-02-18 10:11:42

您可以使用字符串构造函数,一个字符 INT 。它创建了一个字符串实例与字符重复指定的次数。

You can use the string constructor that takes a char and an int. It creates a string instance with the char repeated the specified number of times.