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 used ref keyword in c#,and how we used it?

Answer Posted / satya

if you want pass parameters by reference then ref keyword
should be used in calling and called methods
void add(ref int x)--- called(formal parameter)
add(ref a)-----calling(actual parameter)
.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is versioning applicable to private assemblies?

931


what are the different ways a method can be overloaded?

885


What is Covariance and contravariance in C#?

989


What is winforms c#?

909


What are indexers in c# .net?

920


Why would you use a class property in c#?

867


What does the keyword “virtual” declare for a method or property?

905


Can I get the name of a type at runtime?

933


Can struct have constructor c#?

862


what is the syntax to inherit from a class in c#?

962


What are the namespace level elements?

899


What are the steps to create an assembly and add it to the gac?

825


What are console applications used for?

875


How to rotate an Image in C#?

1038


How Global.asax is used ?

1002