Esempio n. 1
0
        static void Main(string[] args)
        {
            CustomEventArgs _event = new CustomEventArgs("hi");

            Console.WriteLine(_event.Message);
        }
        //Function which matches the delegate signature

        public void HandleNotification(object sender, CustomEventArgs e)
        {
            Console.WriteLine($" SUBSCRIBER SAYS :[Number :{e.Number},Message :{e.Message}");
        }