◆ GetValue() [2/2]

static object GetValue ( this MemberInfo  memberInfo,
object  forObject 
)
static
Parameters
memberInfothis value is automatically set to be the calling MemberInfo's instance. (Since this is an Extension Method, extending theMemberInfo class)
forObjectthis parameters references the object we will be looking inside. Is it this instance we will be getting the memberInfo's value from.
Returns
returns an Object that contains the found value. See FieldInfo's and PropertyInfo's GetValue() docs for more details: https://msdn.microsoft.com/en-us/library/system.reflection.fieldinfo.getvalue(v=vs.110).aspx