500 Important C# and.NET interview questions asked to C# developers

Start from the beginning
                                        

Who compiles the IL code and how does it work?

How does JIT compilationwork?

What are different types of JIT?

What is Native Image Generator (Ngen.exe)?

So does it mean that NGEN.EXE will always improve performance?

What is a CLR?

What is the difference betweenmanaged and unmanaged code?

What is a garbage collector?

What are generations in Garbage collector (Gen 0, 1 and 2)?

Garbage collector cleans managed code, how do we clean unmanaged code?

But when we create a destructor the performance falls down?

So how can we clean unmanaged objects and also maintain performance?

Can we force garbage collector to run?

What is difference between finalize and dispose?

What is CTS?

What is a CLS (Common Language Specification)?

What is an Assembly?

What are the different types of Assembly?

What is Namespace?

What is Difference between NameSpace and Assembly?

What is ILDASM?

What is Manifest?

Where is the version information stored of an assembly?

Is versioning applicable to private assemblies?

What is the use of strong names?

What is Delay signing?

What is GAC?

How to add and remove an assembly from GAC?

If we have two versions of the same assembly in GAC how to we make a choice?

What is reflection?

What are stack and heap?

What are Value types and Reference types?

What is concept of Boxing and Unboxing?

How performance is affected due to boxing and unboxing?

How can we avoid boxing and unboxing?

How to prevent my .NET DLL to be decompiled?

What is the difference between Convert.toString and .toString () method?

How can we handle exceptions in .NET?

How can I know from which source the exception occurred?

What if we do not catch the exception?

What are system level exceptions and application level exceptions?

Can two catch blocks be executed?

What are different types of collections in .NET?

What is the difference between arraylist and list?

Are Arraylist faster or Arrays?

What are hashtable collections?

What are Queues and stack collection?

Can you explain generics in .NET?

Can you explain the concept of generic collection?

What is the difference between dictionary and hashtable?

500 Important C# and.NET interview questions asked to C# developersWhere stories live. Discover now