Is it possible somehow to close StreamReader after calling ReadToEnd method in construction like this:
string s = new StreamReader("filename", Encoding.UTF8).ReadToEnd();
Any alternative elegant construction with the same semantics will be also accepted.
Thanks!