コード例 #1
0
ファイル: TypeAttribute.cs プロジェクト: zhuthree/lucenenet
        public override bool Equals(object other)
        {
            if (other == this)
            {
                return true;
            }

            if (other is TypeAttribute)
            {
                TypeAttribute o = (TypeAttribute)other;
                return (this.type == null ? o.type == null : this.type.Equals(o.type, StringComparison.Ordinal));
            }

            return false;
        }
コード例 #2
0
ファイル: TypeAttribute.cs プロジェクト: zhuthree/lucenenet
 public override void CopyTo(IAttribute target)
 {
     TypeAttribute t = (TypeAttribute)target;
     t.type = type;
 }