static void Main(string[] args) { var scale = new ScaleClosure() { environment = 2 }; scale.environment = 3; Work(scale); Console.ReadLine(); }
public static void RunClosures() { var scale = new ScaleClosure() { environment = 2 }; scale.environment = 5; Work(scale); Console.ReadLine(); }
static void Work(ScaleClosure scale) { int y = scale.Scale(5); Console.WriteLine(y); }