public override bool IsDefined(Type attributeType, bool inherit){ if (this.customAttributes != null) return this.customAttributes.GetAttribute(attributeType) != null; else return false; }