In .NET 4 you can do this:
String.Concat(Enumerable.Repeat("Hello", 4))
More Related Contents:
- How to extend C# built-in types, like String?
- Why doesn’t VS 2008 display extension methods in Intellisense for String class
- C# how to check if a string contains 3 times the same letters in a row [closed]
- What’s wrong with my function? C# [closed]
- How to trim after 1 letter from space C#? [closed]
- How would you count occurrences of a string (actually a char) within a string?
- How to convert UTF-8 byte[] to string
- How do I parse a string with a decimal point to a double?
- Distinct() with lambda?
- Splitting a string into chunks of a certain size
- Color different parts of a RichTextBox string
- How can I String.Format a TimeSpan object with a custom format in .NET?
- Convert int to string?
- String Concatenation using ‘+’ operator
- Difference between string and StringBuilder in C#
- How to parse a string into a nullable int
- Compare version numbers without using split function
- Split a string with delimiters but keep the delimiters in the result in C#
- How do I truncate a .NET string?
- Connection string with relative path to the database file
- C# Version Of SQL LIKE
- Compare string similarity
- Write bytes to file
- Java equivalent of C#’s verbatim strings with @
- AddRange to a Collection
- Converting a byte to a binary string in c#
- Warm-up when calling methods in C#
- Get values between curly braces c#
- Doesn’t C# Extension Methods allow passing parameters by reference?
- what’s the use of string.Clone()?