Fast Way To Repeat a String
January 17, 2014 at 5:46 PM
—
admin
there is may way to do it , but I this the following extension method will be that fast and efficient way to repeat a string for a specific number of times , just add this method to a static class and you can call it like :
public static string Repeat(this string value, int count)
return new StringBuilder().Insert(0, value, count).ToString();
9fa719da-040d-40f4-b88d-65905ac46074|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Posted in: .NET | IT
Tags: