Home » C# Call By Value

C# Call By Value

by Online Tutorials Library

C# Call By Value

In C#, value-type parameters are that pass a copy of original value to the function rather than reference. It does not modify the original value. A change made in passed value does not alter the actual value. In the following example, we have pass value during function call.

C# Call By Value Example

Output:

Value before calling the function 50 Value inside the show function 2500 Value after calling the function 50 

You may also like