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 use of getcommandlineargs() method in c#.net?
write a c# program add two matrix with input number ?
Explain different properties of object oriented systems.
What is the difference between throw and throw ex?
What is unmannaged code and will CLR handle this kind of code or not .
what is IDisposal interface,IComparable,IEquatable,IFormatable
Can I define a type that is an alias of another type (like typedef in c++)?
What is binary search tree in data structure?
What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
Why ref is used in c#?
What is difference between ienumerable and enumerable in c#?
What is the difference between constant and readonly in c#?
How to implement an object pool in c#.net.
Is null or empty in c#?