Pass Property as Expression

I recently needed to pass a property of a class as an expression to a method and read value from it. I found the code that I finally ended up interesting and thought it might be useful to share it here. It might look I could have passed the value directly instead of as an … Continue reading Pass Property as Expression

Multicasting with Action

Func and Action are inherited from System.MulticastDelegate, which means that you could actually do multicasting with them and add multiple methods to the InvocationList. Let's check how we do it. Output of above code would be The same can be done with Func as well. How do we remove one Action , same syntax as … Continue reading Multicasting with Action