Friday, July 4, 2008

Static Local Variables in VB.NET

VB.NET has support for "local static variables". These are variables local to a method, but retain their method call between invocations of the method. The CLR does not support this, so how does VB.NET do it if it runs under the CLR? Just some simple compiler tricks here!

No comments: