void SetMemberValueFromAttr (XmlTypeMapMember member, object ob, object value, bool isValueList) { // Enumeration values specified in custom attributes are stored as integer // values if the custom attribute property is of type object. So, it is // necessary to convert to the enum type before asigning the value to the field. if (member.TypeData.Type.IsEnum) value = Enum.ToObject (member.TypeData.Type, value); SetMemberValue (member, ob, value, isValueList); }