Sunday, October 26, 2008

Open delegates

Do you know what is open delegate? I was quite surprised when I knew this. They exists since .NET 2.0, but I suspect they were not documented in MSDN initially, so e.g. I have known this much later.

- An example
- Official documentation.

So what is open delegate? It is a delegate bound only to a method, but not to an instance, so you can use the same delegate to call the method it is bound to on many instances. That's it.

And few more notes:
- Open delegate invocation must take at least the same time as the underlying virtual or interface method invocation, since .NET can't use the same way of invocation as for the regular one (there is no single method call address to use). We didn't test this yet, but if we will, I publish the results here.
- An open delegate bound to virtual generic method must be the slowest one - by the same reason. Do you know why virtual generic methods are the slowest ones? My next post here will explain this.
- Btw, various ways of invocation in .NET are perfectly described here. The article covers i.e. regular, virtual, interface methods and delegates.


  1. Replies
    1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.
      or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

  2. for beginners like me need a lot of reading and searching for information on various blogs. and articles that you share a very nice and inspires me .
    cara menggugurkan kandungan
    obat aborsi
    kalkulator kehamilan

  3. An fascinating discussion is value comment. I think that it is best to write extra on this matter, it won’t be a taboo topic however generally people are not enough to talk on such topics. GO THE HELL NOW

  4. Kami memberikan solusi cara menggugurkan kandungan dengan menggunakan obat penggugur kandungan yang akan sangat membantu anda dalam menuntaskan untuk melancarkan haid seperti semula untuk itu kami agen yang beralamatkan di ingin membantu anda dalam menangani pembelian obat aborsi Cara menggugurkan kandungan dengan cepat

  5. This is a very good article material and it is very useful for us all. thank you . cara menggugurkan kandungan

  6. This blog is so nice to me. I will continue to come here again and again. Visit my link as well. Good luck
    Cara Menggugurkan Kandungan
    Jual Obat Aborsi
    Obat Aborsi
    Obat Aborsi Ampuh
    Cara Menggugurkan Kandungan
    Obat Telat Bulan
    Obat Pelancar Haid
    Cara Menggugurkan Kandungan
    Jual Obat Pelancar Haid
    Cara Menghitung Usia Kehamilan
    Obat Penggugur Kandungan
    for beginners like me need a lot of reading and searching for information on various blogs. and articles that you share a very nice and inspires me.

  7. After completing all ordered custom papers online assignments, our top essay writing service team is keen on uploading them to a platform where clients can access them with ease.


  8. شركه عزل فوم بالرياض

    أيضاً تسبب في سقوط الطلاء وظهور التشققات، ولكن من الآن لا داعي

    شركه تنظيف منازل بالدمام
    للقلق لأن شركة عزل أسطح تقدم لعملائها الكرام في كافة أنحاء المملكة العربية السعودية .
    افضل شركة عزل أسطح

    شركه تنظيف مكيفات بالرياض
    شركه عزل فوم بالدمام

    شركه عزل اسطح بالدمام

    شركه عزل فوم بالقطيف

    شركه عزل فوم بالاحساء

    شركه عزل فوم بالجبيل

  9. Great article! Keep post blogs like this very informative.thank you for sharing
    amazon customer care number india
    amazon coupon code

  10. When you order Do My Coursework for Me from them, you will also find information on Custom Coursework Writing Service collection methods and participants in this section and Literature Review Writing Service.

  11. Are you looking to buy Already Written Essays from the best writers? You are not alone. When given Custom Dissertation Services, many students look Best Essay Writing Company for help.

  12. Is it a seemingly tedious task to acquire outstanding Descriptive Essay Writing Services from a trustworthy writing company? Do you know the characteristics to look for in a Custom Descriptive Writing Service company which can deliver tasks of high Custom Descriptive Essay?