// Example application for code from // https://jonskeet.uk/csharp/parameters.html // // To compile the code, run (from a command prompt // with the appropriate environment variables set): // csc Example2.cs // // To run the code after compilation, just run Example2.exe using System; using System.Text; public class Example2 { struct IntHolder { public int i; } public static void Main (string[] args) { IntHolder first = new IntHolder(); first.i=5; IntHolder second = first; first.i=6; Console.WriteLine (second.i); } }