CardShop.Models.Validator.Comparator.Comparator C# (CSharp) Метод

Comparator() публичный Метод

Will compare propery you signify in the annotation. By default, the operator is equal to. You are compoaring against the field. so greater than is field > otherProperty
public Comparator ( string otherProperty, Operator op = Operator.EqualTo ) : System
otherProperty string the property you want to compare against
op Operator the operator enum you want to call in
Результат System
        public Comparator(string otherProperty,Operator op=Operator.EqualTo)
        {
            this.otherProperty = otherProperty;
            this.errorMessage = null;
            this.op = op;
        }

Same methods

Comparator::Comparator ( string otherProperty, string errorMessage, Operator op = Operator.EqualTo ) : System