string.Repeat() extension method
I needed str_repeat() functionality in one of my C# methods. As .Net currently doesn’t offer it I wrote my own Repeat() extension method for strings. Here you can find C# and VB.NET versions. Make sure you put the method inside static class.
NB! This blog is moved to gunnarpeipman.com
Click here to go to article