Property Name and need its value

后端 未结 5 991
萌比男神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:40

    Just use the name of the property. If it is a nullable property (e.g. int ? property) use property.Value.

提交回复
热议问题