示例#1
0
        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
        public override void CopyTo(IAttribute target)
        {
            TypeAttribute t = (TypeAttribute)target;

            t.type = type;
        }