public override BaseField Clone() { IntField field = new IntField(); field.FieldName = FieldName; field.Value = Value; return(field); }
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); }