Possible Duplicate:
Difference between ref and out parameters in .NET
When to use ref and when to use out ?
What is difference between the both ?
How and where they are used ?
Please share an example showing difference between the both ref and out .
- Thanks.
There’s any number of examples online.
A quick Google search found this: http://www.c-sharpcorner.com/UploadFile/mahesh/out_and_ref11112005002102AM/out_and_ref.aspx