Exemplo n.º 1
0
        public override BaseField Clone()
        {
            BooleanField field = new BooleanField();

            field.FieldName = FieldName;
            field.Value     = Value;
            return(field);
        }
Exemplo n.º 2
0
        public override bool Equals(object other)
        {
            if (other is bool)
            {
                bool field = (bool)other;
                return(this.Value.Equals(field));
            }
            else if (other is BooleanField)
            {
                BooleanField field = (BooleanField)other;
                return(this.Value.Equals(field.Value));
            }

            return(false);
        }