Quantcast
Channel: Is multicast delegate create new reference for each chaining? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by TheGeneral for Is multicast delegate create new reference for each...

Delegates are immutable.... When you add a new handler a new delegate is created. Under the hood it calls the Delegate.Combine Method Concatenates the invocation lists of two delegates. Returns A new...

View Article



Answer by Dmytro Mukalov for Is multicast delegate create new reference for...

Because it's immutable type and each assignment creates new instance copied from original one. Note it's still reference type but just of special kind.

View Article

Is multicast delegate create new reference for each chaining?

Is multicast delegate create new reference for each chaining? or its a value type (MSDN says otherwise)? I don't understand, please take look at the following code. using System; class TestClass {...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images