Article written

  • on 09.12.2008
  • at 04:54 PM
  • by arkin

How to str_repeat in C# 0

Dec9

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);
}

subscribe to comments RSS

There are no comments for this post

Please, feel free to post your own comment

* these are required fields

arkinEx Codex is powered by WordPress and FREEmium Theme.
developed by Dariusz Siedlecki and brought to you by FreebiesDock.com