Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
What is ref parameter and where is its uses
August 05, 2009
What is ref parameter and where is its uses? Please provide some example.Thank You.
Posted Date: August 05, 2009 Points: 5
A parameter declared with a ref modifier is a reference parameter. Unlike a value parameter, a reference parameter does not create a new storage location. Instead, a reference parameter represents the same storage location as the variable given as the argument in the method invocation.
When a formal parameter is a reference parameter, the corresponding argument in a method invocation must consist of the keyword ref followed by a variable-reference of the same type as the formal parameter. A variable must be definitely assigned before it can be passed as a reference parameter.
For Example you can refer this
Mark As Answer if this solve your problem
To post reply
Related Questions Related Questions
parameter in the browser address bar. How can I prevent this ?
how to pass two parameter in querystring in gridview hyperlink column
how to pass multiple parameter inside gridview hyperlink control
what is OUT parameter and where we use it?
error:Failed to convert parameter value from a String to a Boolean.
Passing table name as Parameter in SQL
Table name as parameter in SQL Stored Procedure
get value from output parameter from stored procedure
How do I call a Stored Procedure with one associative array as Out put Parameter ?
How to call a method containing out parameter using reflection?
Latest Forum Questions From The Same Category
To Achieve draw wave form from speaker outputs.
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend