Пример #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;
        }