/// <summary>
 /// 该值指示此实例是否等于指定的对象。
 /// </summary>
 /// <param name="attribute"> 要与此实例进行比较 <see cref="ApiFilterAttribute"/>。</param>
 /// <returns></returns>
 public virtual bool Match(DataValidationAttribute attribute) => GetType() == attribute?.GetType();
Exemple #2
0
 public override bool Match(DataValidationAttribute attribute)
 => base.Match(attribute) || attribute?.GetType() == typeof(NoScriptAttribute);