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

Why is it called c sharp?

704


What is a statement c#?

701


How many bytes is an int in c#?

687


Why is hashset faster?

679


How do I make a dll in c#?

694


Which attribute is used in order that the method can be used as webservice?

718


what is main function of alternate teamplate of datalist?

1924


Why dictionary is faster than list?

749


Is there throws keyword in c#?

666


Write a syntax for writing a event delegate.

690


What are sessions in c#?

708


What is platform independence"?

736


What is enumerable in c#?

675


What’s a strong name?

701


What is a static property. Give an example?

696