3 ms·
> How do you convert to a string? Convert.ToString(). Actually, I think this is a bad example because oop is inadequate in this particular case. Converting so
by bnegreve 15y ago
> How do you convert to a string? Convert.ToString().
Actually, I think this is a bad example because oop is inadequate in this particular case.
Converting something to something else perfectly fit the functional paradigm (take an argument, returns something, don't store anything).
Why do you need a Convert object? How would you explain this to someone not familiar with C#.
I think Console.WriteLine("hello"); is a better example.