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


Please Help Members By Posting Answers For Below Questions

in object oriented programming, how would you describe encapsulation?

561


Explain about CTS?

553


Is xml tags are case sensitive?

485


What are partial classes and use of partial classes?

529


what are some characteristics of an array?

525






Is std :: string null terminated?

492


How can encapsulation be achieved?

604


What is a hash table c#?

472


Who is a accessibility modifier “protected internal” available to ?

602


Can a sealed class be used as a base class?

536


What is the difference between throw and throw ex?

469


Why ref is used in c#?

474


What is the implicit name of the parameter that gets passed into the set method/property of a class?

501


What is the meaning of 0 in c#?

539


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?

554