Exemple #1
0
        static void Main()
        {
            Delegate  D1           = new Delegate();
            Area      delArea      = D1.Area;
            Perimeter delPerimeter = D1.Perimeter;
            IsSquare  delIsSquare  = D1.IsSquare;

            delArea.Invoke(12, 12);
            int P = delPerimeter.Invoke(12, 12);

            Console.WriteLine("Perimeter : " + P);
            bool status = delIsSquare.Invoke(12, 12);

            Console.WriteLine(status);

            Console.ReadKey();
        }
Exemple #2
0
 public void Test1()
 {
     var IsSquare = new IsSquare();
 }