How would I generate a string of asterisks of specified length (so I could use it alongside the .Length property of an array item)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do that using the
String(Char, Int32)constructor overload ofSystem.String.You can use the constructor like this:
There are many more constructor overloads for
System.String.