Generics are a compile-time artifact. In your example there is only one "MyGeneric" class at run-time and only one instance of the static variable "i". Mentioning the class parameter when trying to access it is pointless and hence wrong.
Joined: Apr 30, 2006
Originally posted by Garrett Rowe:
Thanks Gerrett, didn't think about trying it this way.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Accessing a static variable from a generic class?