Gets the member value of a specified object. The object whose member value will be returned. The member value of the specified object.
(object obj)
| 657 | /// <param name="obj">The object whose member value will be returned.</param> |
| 658 | /// <returns>The member value of the specified object.</returns> |
| 659 | public object GetValue(object obj) |
| 660 | { |
| 661 | if (_managed is PropertyInfo propertyInfo) |
| 662 | return propertyInfo.GetValue(obj, null); |
| 663 | if (_managed is FieldInfo fieldInfo) |
| 664 | return fieldInfo.GetValue(obj); |
| 665 | return _custom.GetValue(obj); |
| 666 | } |
| 667 | |
| 668 | /// <summary> |
| 669 | /// Sets the member value of a specified object. |
no outgoing calls
no test coverage detected