C sharp must read interview Questions and Answers
C# Interview must read interview Questions and Answers
Is C# code is managed or unmanaged code? C# is managed code as Common language runtime can compile C# code to Intermediate language.
|
What is the difference between directcast and ctype? DirectCast is used to convert the type of an object that requires the run-time type to be the same as the specified type in DirectCast. |
How to implement singleton design pattern in C#? In singleton pattern, a class can only have one instance and provides access point to it globally.
|
What is difference between the "throw" and "throw ex" in .NET? "Throw" statement preserves original error stack whereas "throw ex" have the stack trace from their throw point. It is always advised to use "throw" because it provides more accurate error information. |
What is difference between is and as operators in c#?
|
How to use nullable types in .Net? Value types can take either their normal values or a null value. Such types are called nullable types.
|
What is the use of the “using” statement in C#?There are two ways to use the using keyword in C#. One is as a directive and the other is as a statement. Let's explain!
|
You may also like :