Get the property name used in a Lambda Expression in .NET 3.5

后端 未结 3 836
心在旅途
心在旅途 2020-12-03 01:54

I have a problem that has been nagging me for some time now and I can\'t find the answer.

I need to obtain the name of the property that is being referenced in a La

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 02:25

    The only way I know of getting the string name of a property is via reflection.

提交回复
热议问题