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 access specifier in c#?
What is use of FormBoarderStyle Propertie
What are static and dynamic variables?
What is a data set in c#?
What is a static in c#?
What is difference between overloading and short circuiting?
What is the purpose of namespace in c#?
explain the nature of the assembly work?
What does public mean in c#?
How do you escape a character?
How big is a 64 bit integer?
Why main method is static in c#?
Is int reference type c#?
What is the difference between system.string and system.text.stringbuilder classes?
What is msil in c#?