I'm converting an ancient VB6 program to C# (.Net 4.0) and in one routine it does lots of string manipulation and generation. Most of the native VB6 code it uses have analogues in the C# string class, e.g., Trim(). But I can't seem to find a replacement for Space(n), where it apparently generates a string n spaces.
Looking through the MSDN documentation, there seems to be a Space() method for VB.Net but I couldn't find it mentioned outside of a VB.Net context. Why is this? I thought all the .Net languages share the same CLR.
Does C# or .Net have a generic Space() method I can use in C# that I'm just overlooking somewhere?
N.B. I'm aware that writing one-liners to generate n-spaces is a popular quiz-question and programmers' bar-game for some programming languages, but I'm not looking for advice on that. If there's no native way to do this in C#/.Net it's easy enough to write a simple method; I just don't want to reinvent the wheel.