Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the use of getcommandlineargs() method in c#.net?

973


write a c# program add two matrix with input number ?

953


Explain different properties of object oriented systems.

981


What is the difference between throw and throw ex?

873


What is unmannaged code and will CLR handle this kind of code or not .

1011


what is IDisposal interface,IComparable,IEquatable,IFormatable

1012


Can I define a type that is an alias of another type (like typedef in c++)?

976


What is binary search tree in data structure?

891


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

980


What operators can be used to cast from one reference type to another without the risk of throwing an exception?

900


Why ref is used in c#?

892


What is difference between ienumerable and enumerable in c#?

906


What is the difference between constant and readonly in c#?

919


How to implement an object pool in c#.net.

1052


Is null or empty in c#?

957