How to str_repeat in C#
This’ll teach you how to repeat a string similar to PHP str_repeat in C sharp.
private string StrRepeat(string text, int times)
{
return new String(' ', times).Replace(" ", text);
}If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments
No comments yet.
Leave a comment