Пример #1
0
        public override BaseField Clone()
        {
            LongField field = new LongField();

            field.FieldName = FieldName;
            field.Value     = Value;
            return(field);
        }
Пример #2
0
        public override bool Equals(object other)
        {
            if (other is long)
            {
                long field = (long)other;
                return(this.Value.Equals(field));
            }
            else if (other is LongField)
            {
                LongField field = (LongField)other;
                return(this.Value.Equals(field.Value));
            }

            return(false);
        }