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 difference between arraylist and list in c#?

853


Is lazy t thread safe?

897


What is yield return in c#?

894


What is func delegate in c#?

894


can you create a function in c# which can accept varying number of arguments

1022


Are attributes inherited c#?

830


What is the main method in c#?

994


What is the diff between the System.Array.CopyTo() and System.Array.Clone()?

947


Why delegates are safe in c#?

811


How will you deploy the dll file in gac?

890


Why static constructor is parameterless in c#?

984


Is versioning applicable to private assemblies?

931


What is managed code?

982


How to use nullable types in .net?

942


How do I format in c#?

828