Unfortunately C# does not have anything like that, you will have to make one yourself. But, you can try referencing Microsoft.VisualBasic.dll.
Then using the code below.
Alternatively, by adding a using directive allowing for a shorter syntax in your code (which I'd personally prefer).
Or you can do what Pranay Rana suggests, that's what I would've done too...