Category C#.Net

Reflection

Introduction Reflection is used to get the information regarding assemblies,type of object,modules and classes at runtime. you can also create instances of type and assemblies at runtime,invoke methods of objects,get names of assemblies dynamically. it’s similar to Runtime type information in c++. System.Reflection namespace used for reflection which contains all required classes and interfaces for […]

Why we can’t create object for static class?

When i was attending my first interview in my current company this question was asked by my technical manager to me.I answered like others because the class has static keyword so we can’t create object for the class. Again he asked but why we can’t create object to the class declared as static.Then later i […]