Pass integer by reference
using System; public class Starter { public static void MethodA(ref int parameter) { parameter = parameter + 5; } public static void Main() { int var = 2; MethodA(ref var); Console.WriteLine(var); // 7 } }