Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在我的 C# 项目中包含了 visual.basic 模块,我可以这样做:
ParamVal = Strings.Space(1024);
但是我如何在没有using Microsoft.VisualBasic;- 也就是说,无法访问的情况下编写它Strings?
using Microsoft.VisualBasic;
Strings
(我无法通过在线转换器运行它......)
尝试:
ParamVal = new String(' ', 1024);
String类型有一个构造函数,允许你指定一个字符,以及它应该重复多少次。