Technology Guruu

  • Home
  • Site Info
    • About Us
    • Disclaimer
    • Privacy Polacy
  • Home
  • Digital Marketing
    • SEO
    • SMM
    • SEM
  • Quotes
  • Technical
  • Java
  • .Net
    • C#.Net
    • ASP.Net
  • Keychains

Wednesday, 7 June 2017

Brief Description about Multicast Delegate

 Akansha     10:30:00     TechnicalQuestions     3 comments   

Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time.

Multicast Delegate

hd images of Multicast Delegate

Multicast delegate return type should be void because it can hold only void methods
Example for multicast delegate to invoke instance methods
namespace multicastdelegateex1
{
class Myclass
{
internal void method1()
{
console.writeline("method1 is calling");
}
internal void method2()
{
console.writeline("method2 is calling");
}
}
internal delagate void MultiDelegate();
class Program
{
void main()
{
Myclass obj=new Myclass(0;
MultiDelegate delobj=new MultiDelegate(obj.method1);
delobj+=new MultiDelegate(obj.Method2);
delobj();
delob-=new MultiDelegate(obj.method2);
delobj();
console.ReadLine();
}
Output:
method1 is calling
method2 is calling
method2 is calling
method1 is calling
method1 is calling
Friends you like my post please share to your friends because sharing is caring.Share the post through social media like Facebook,Twitter,Google+ etc.And you feel free comment on post do you have any doubts i clarify your doubts.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

3 comments:

  1. Unknown6 December 2015 at 14:45

    whats the use of multicast delegate

    ReplyDelete
    Replies
    1. Akansha7 December 2015 at 11:41

      Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time.

      Delete
      Replies
        Reply
    2. Reply
  2. Akansha7 December 2015 at 11:41

    Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time.

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

Popular Posts

  • Brief description about Delegates
    Introduction about delegates and why delegates are came the main purpose of delegates how to useful and what are the advantages and disadv...
  • Love Failure Quotes and Sad valentines day Quotes
    We Love Someone is a easy process sometime takes long time to love someone love others within short period but anyway always love dependin...
  • Top Most Differences between windows,web and console applications
    You want to get clarity on any topic the differences very helpful at that time and in these we are having top 5 differences between conso...
  • Missing My Friend Quotes : Friendship Day Quotes 2017
    Friends today my article about missing friends and moments with them. Here you are seen the best friendship quotes and some  feelings when...
  • How do I increase organic traffic within One Month
    There’s plenty you can do boost organic site traffic at no cost except your time: Optimize for your personas, not search engines.  ...
  • Detail Introduction about C#.Net
    Brief Introduction about C#.Net  Introduction C#.Net is the one of the Programming Language the .Net Framework also contains ano...
  • Best Good Afternoon wishes greetings and quotes
    Top Most Good Afternoon Wishes Good Afternoon wishes are gives a relaxation in afternoon time.This wishing can be done between 12 to 3 p...
  • Best Methods To Get A Cheap Home Insurance Deal!
    Cheap Home Insurance Home Insurance is seen as a luxury but in all honesty it is a necessity especially in the case of natural disast...
  • Brief Description about Multicast Delegate
    Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time. Multicast ...
  • How to Remove Audio From Any Video Using VLC Media Player?
    Step by Step Procedure for  Remove(Mute) Audio in a Video Using VLC  Player A picture is worth a thousand words and a video is worth a t...

Categories

  • Entertainment (67)
  • TechnicalQuestions (58)
  • Quotes (11)
  • C#.Net (8)
  • Java (8)
  • ValentinesDay (4)
  • SEO (3)
  • Home
  • About Us
  • Disclaimer
  • Privacy Policy
  • Sitemap

Copyright © 2015-2017 Good Friends 5.All Rights Reserved• And Our Sitemap • All Logos and Trademark Belongs To Their Respective Owners•