Posts

Showing posts with the label Multicast delegate
Image
Delegates In C# Delegate in C#? ·         A delegate is a type safe mechanism, which act as pointer for the method. ·         In other words, delegate will hold the reference of a method with same kind of declaration of delegate for a method. ·         When it’s an non static class, then these delegates can be called by creating instance of a class to access/ or call a method for execution ·         When it’s a static class, then these delegates can be called by directly with the class name along with the dot operator post class to access/ or call a method for execution. ·           When a method is required to be accessed through delegate then the following steps must be followed o    Declare a delegate o    Call by class name or with object reference Types: ...