Is there a method that multiplies an "X" character as many times as I want? example:
I have the "P" character
P x 5="PPPPP"
Is there a ready method in .Net?
Is there a method that multiplies an "X" character as many times as I want? example:
I have the "P" character
P x 5="PPPPP"
Is there a ready method in .Net?
Yes, there is, just build the string indicating the number of times you want:
var texto = new String('P', 5);
See running on dotNetFiddle .
Dim texto = New String("P", 5)
See the dotNetFiddle