示例#1
0
        public override bool Equals(object other)
        {
            if (other == this)
            {
                return(true);
            }

            if (other is OffsetAttribute)
            {
                OffsetAttribute o = (OffsetAttribute)other;
                return(o.startOffset == startOffset && o.endOffset == endOffset);
            }

            return(false);
        }
示例#2
0
        public override void CopyTo(IAttribute target)
        {
            OffsetAttribute t = (OffsetAttribute)target;

            t.SetOffset(startOffset, endOffset);
        }