C#/.NET Little Wonders: An Oft Overlooked String Constructor

added by BlackRabbitCoder
9/2/2011 9:25:18 AM

105 Views

I’m going to begin a series of Little Wonders in the BCL String class.  Yes, we all work with strings in .NET daily, so perhaps you already know most of these.  However, there are a lot of little fun things in the C# class that some folks newer to the language may be less aware of. This post takes a look at a version of the String constructor which lets you create strings of a repeated character easily and efficiently.


1 comments

dpeterson
9/2/2011 9:24:59 AM
Handy!
I wonder how that has escaped most of us for so long?