Wednesday, April 7, 2010

Why we cant access this & base keywords (C#) inside a static method?

Ans: Static methods have not allocated memory, on the basis of any object created. As this refers to current class object & base refers to Base class object, so these are not accessible from a static method. 


Any different view?

No comments: