예제 #1
0
        public event t tEvt; //declares an event for the delegate

        public void mm()
        {
            //function that will raise the callback
            MyArgs r = new MyArgs();
            tEvt(this, r); //calling the client code
        }
예제 #2
0
        //this code will be called from the server

        public void oo_tt(object sender, MyArgs e)
        {
            Console.WriteLine("yes");
            Console.ReadLine();
        }