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