using System; namespace Example7 { /// /// Summary description for Class1. /// class Class1 { public static int Cube(ref int number) { int result = number * number * number; number = 17; return result; } /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { int x = 4; int value = Cube(ref x); Console.WriteLine("The cube of {0} is {1}", x, value); } } }