How can I pass a property as a delegate?

前端 未结 6 1540
深忆病人
深忆病人 2021-02-04 04:03

This is a theoretical question, I\'ve already got a solution to my problem that took me down a different path, but I think the question is still potentially interesting.

6条回答
  •  孤独总比滥情好
    2021-02-04 04:51

    As others have pointed, static reflexion is the way to go.

    Those classes work out of the box :

    http://www.codeproject.com/Articles/36262/Getting-Fun-with-Net-Static-Reflection.aspx

提交回复
热议问题