When @No One was answering my question here he had mentioned something like below,
using(SomeClass c = new SomeClass())
{ }
**
will translate to
**
try
{
SomeClass c = new SomeClass();
}
finally
{
c.Dispose();
}
Well, how do you guyz tell that?
Also, some of you mentions that "internally it will be implemented in a way" , how do you see the internal implementation of something?
For example, while I was browsing through "concepts of generics" in MSDN, they say that List is generic and showed a sample implementation of how list is implemented internally here. How do we really get that for others?
I tried in VS 2010. But the object browser shows only the methods or fields exposed of a particular type.
(I am just being curious because the example of the internal implementation of list is just awesome. really interesting stuff!)