function to multiply strings C# code example Example: write string multiple times c# String.Concat(Enumerable.Repeat("Hello", 4))