Property Name and need its value

后端 未结 5 986
萌比男神i
萌比男神i 2020-12-17 06:42

I have a name of a property and need to find its value within a Class, what is the fastest way of getting to this value?

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-17 07:39

    If you're interested in speed at runtime rather than development, have a look at Jon Skeet's Making reflection fly and exploring delegates blog post.

提交回复
热议问题