I\'ve got an object that has a collection of properties. When I get the specific entity I can see the field I\'m looking for (opportunityid) and that it\'s
opportunityid
Use PropertyInfo.GetValue(). Assuming your property has the type Guid? then this should work:
PropertyInfo.GetValue()
Guid?
attrGuid = ((System.Guid?)info.GetValue(attr, null)).Value;
Note that an exception will be thrown if the property value is null.