Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

We can use delegates in interface through events

$
0
0

public delegate void UpdateStatusEventHandler(string status);
        public delegate void StartedEventHandler();

        public interface IMyInterface
        {
            event UpdateStatusEventHandler StatusUpdated;
            event StartedEventHandler Started;
        }

This works great.

Best Regards

Sanju M

sanjus10@hotmail.com


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>