how do you create string of repeating characters?

  • Thread starter Thread starter Daniel Billingsley
  • Start date Start date
D

Daniel Billingsley

How do I create a string consisting of a specified character repeated a
specified number of times?

Something like
String.Fill('x', 10) to create "xxxxxxxxxx"

The best I see would be some hack using PadLeft() or (probably better) some
method written from scratch.
 
Back
Top