View Single Post
Old 25-10-2011, 09:13   #2
cybergabry
Member
 
Iscritto dal: Jan 2008
Cittā: Alcamo (TP)
Messaggi: 45
Grazie a un aiuto esterno del forum MSDN - Visual C# ho risolto, posto la soluzione:

Codice:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Classes
{
    class Program
    {
        public delegate void DelegateArea(Rectangle rect);
        
        static void Main(string[] args)
        {
            Rectangle rect = new Rectangle(10, 20);
          
            DelegateArea myDelegate;
            myDelegate = DisplayArea;
            myDelegate(rect);
        }

        static void DisplayArea(Rectangle obj)
        {
            Console.WriteLine(obj.GetArea());
        }
    }
}
cybergabry č offline   Rispondi citando il messaggio o parte di esso