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
in object oriented programming, how would you describe encapsulation?
Explain about CTS?
Is xml tags are case sensitive?
What are partial classes and use of partial classes?
what are some characteristics of an array?
Is std :: string null terminated?
How can encapsulation be achieved?
What is a hash table c#?
Who is a accessibility modifier “protected internal†available to ?
Can a sealed class be used as a base class?
What is the difference between throw and throw ex?
Why ref is used in c#?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
What is the meaning of 0 in c#?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?