using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace AsyncDelegates { class MyAsyncMethods { public static void CircleCalc(double width, double height, out double area, out double perimeter) { Thread.Sleep(TimeSpan.FromSeconds(10)); area = Math.PI * width * width; perimeter = 2 * Math.PI * width; } public static void RectangleCalc(double width, double height, out double area, out double perimeter) { Thread.Sleep(TimeSpan.FromSeconds(10)); area = width * height; perimeter = 2 * (width + height); } } }