| Home | Biography | Speaking | Articles | Books | Music |
It’s been there forever, so I wonder how I missed this until now:
var stream = Console.Out;
Console.SetOut(new StringWriter());
I have to use a property to get the value, but a method to set the value?
Yikes!
There has to be a sane reason why this was done this way. I mean, why not make the property writeable?
Published: 11.17.2008 09:07:54 PM CST