If I include the visual.basic module in my C# project, I can do this:
ParamVal = Strings.Space(1024);
but how do I write that without using Microsoft.VisualBasic;
- that is, without being able to access Strings
?
(I can't run this through the online convertors...)
Try:
ParamVal = new String(' ', 1024);
The String type has a constructor that allows you to specify a character, and how many times it should be repeated.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.