Search code examples
c#delegatestargetfuncpropertyinfo

how is property Target of Func<> set?


when creating new Func<> what is the value of Target property?

Im creating this Func object in constructor of class A which has base class B. In B I compare objects like this :

func.Target != this

which is true..

And I dont simply understand why it is not false..

thanks


Solution

  • issue fixed.

    I used a local variable in function lambda expression. It should be a calss variable obviously..