System.ComponentModel.DataAnnotations.EqualToAttribute.EqualToAttribute C# (CSharp) Method

EqualToAttribute() public method

Creates a new instance of EqualToAttribute
public EqualToAttribute ( string otherProperty ) : System
otherProperty string
return System
        public EqualToAttribute(string otherProperty)
            : this("'{0}' and '{1}' do not match.", otherProperty)
        {
        }

Same methods

EqualToAttribute::EqualToAttribute ( string errorMessage, string otherProperty ) : System