private void SetInheritsAttributeIfFound(MemberInfo field) { var inheritsAttribute = field.GetCustomAttribute <InheritsAttribute>(); if (inheritsAttribute != null) { _fieldDrawer.SetAttribute(inheritsAttribute); } }
private void SetInheritsAttributeIfFound(MemberInfo field) { var inheritsAttribute = (InheritsAttribute)Attribute.GetCustomAttribute(field, typeof(InheritsAttribute)); if (inheritsAttribute != null) { _fieldDrawer.SetAttribute(inheritsAttribute); } }