Is there any way to pass the setter of a property to a delegate?

Viewed 11720

I know this question has already been asked, but this time I have two additional constraints:

  1. Reflection cannot be used.

  2. I don't want to pass a wrapper around a property's setter. I want to pass the setter itself:

    // NO! NO! NO!
    myObject.MyMethod(value => anotherObject.AnotherProperty = value);
    
8 Answers
Related