public override bool IsDefined(Type attributeType, bool inherit) { if (attributeType == null) throw new ArgumentNullException("attributeType"); if (attributeType.IsAssignableFrom(typeof(MethodImplAttribute))) return true; else return false; }