Exemplo n.º 1
0
        public static void Main(string[] a)
        {
            ListWithChangedEvent list = new ListWithChangedEvent();

            EventListner ev = new EventListner(list);

            list.Add("item1");
            list.Clear();
            ev.Detach();
        }
Exemplo n.º 2
0
        public static void Main(string[] a)
        {
            ListWithChangedEvent list = new ListWithChangedEvent();

            EventListner ev = new EventListner( list );

            list.Add("item1");
            list.Clear();
            ev.Detach();
        }