示例#1
0
        public override BaseField Clone()
        {
            IntField field = new IntField();

            field.FieldName = FieldName;
            field.Value     = Value;
            return(field);
        }
示例#2
0
        public override bool Equals(object other)
        {
            if (other is int)
            {
                int field = (int)other;
                return(this.Value.Equals(field));
            }
            else if (other is IntField)
            {
                IntField field = (IntField)other;
                return(this.Value.Equals(field.Value));
            }

            return(false);
        }