Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
By default, all parameters are passed by value in C#. Parameters are only passed by reference if you explicitly include an out
or ref
modifier. However, you need to be aware that when the type of the parameter is a reference type, you're passing a reference rather than an actual object. For more information, see my article on parameter passing and the C# Programmer's Reference.
[Author: Jon Skeet]
Anonymous
February 03, 2010
A very concise and to the topic answer, thank you.
Anonymous
August 09, 2013
In a very simple language u clear every confusion in this topic..
Thanks a lot...
Please sign in to use this experience.
Sign in