Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
we can store value types in ref parameter in C#
Posted

ref parameter can be used for both value and reference types.
Quote:
A method parameter can be modified by ref regardless of whether it is a value type or a reference type.
 
Share this answer
 
Yes , you can use ref parameters to pass reference or value types.

Please refer below more info.

http://msdn.microsoft.com/en-us/library/14akc2c7.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900