asafaa
December 6th, 2005, 02:33 AM
How do i pass function parameter by reference in C#.
haven't found any link , not here ,not in google.....
haven't found any link , not here ,not in google.....
|
Click to See Complete Forum and Search --> : passing function parameter by reference asafaa December 6th, 2005, 02:33 AM How do i pass function parameter by reference in C#. haven't found any link , not here ,not in google..... Sarevok December 6th, 2005, 02:40 AM Use the ref keyword. i.e. function(ref int i) { } slaughtercult December 6th, 2005, 02:42 AM what exactly do you mean? do you want to pass the address for a pointer? otherwise all (except value types) parameters are passed by reference. jhammer December 6th, 2005, 06:03 AM Have a look here: http://www.yoda.arachsys.com/csharp/parameters.html codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |