Method Out Parameters C# with Example
using System; namespace CSharpFundamentals { class MethodOutParameters { private static void Main(string[] args) { int value = 100; Console.WriteLine("Before Method Execution, value={0}", value); ChangeParameters(out value); Console.WriteLine("After Method Execution, value={0}", value); } static void ChangeParameters(out int value) { value = 200; } } }