What is the use of "default" and "Using" keyword?
Answer Posted / pavan kumar
"default" is a keyword which can be used in two ways
1)In switch as default label
2)In generics as default paramenter.
same as "using" key word this also used in two ways
1)For implementing the namespace into current class
2)Used to check properly dispose of object using the
IDisposable interface
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is the difference between arraylist and list in c#?
Is lazy t thread safe?
What is yield return in c#?
What is func delegate in c#?
can you create a function in c# which can accept varying number of arguments
Are attributes inherited c#?
What is the main method in c#?
What is the diff between the System.Array.CopyTo() and System.Array.Clone()?
Why delegates are safe in c#?
How will you deploy the dll file in gac?
Why static constructor is parameterless in c#?
Is versioning applicable to private assemblies?
What is managed code?
How to use nullable types in .net?
How do I format in c#?