/// <summary> /// Initializes a new instance of the Symbol class by associating it with a character and /// a validator method. </summary> /// <param name="symbol"> /// The character that is represented by this object in the mask string. </param> /// <param name="validator"> /// The method called to check if the character entered by the user corresponds /// with this object's symbol. </param> /// <param name="formatter"> /// The method called to format the character entered by the user to a different character, if needed. </param> /// <seealso cref="MaskedBehavior" /> public Symbol(char symbol, ValidatorMethod validator, FormatterMethod formatter) { m_symbol = symbol; Validator = validator; Formatter = formatter; }
/// <summary> /// Initializes a new instance of the Symbol class by associating it with a character and /// a validator method. </summary> /// <param name="symbol"> /// The character that is represented by this object in the mask string. </param> /// <param name="validator"> /// The method called to check if the character entered by the user corresponds /// with this object's symbol. </param> /// <remarks> /// This constructor sets the formatter method to null, meaning that the character /// entered by the user is not formatted. </remarks> /// <seealso cref="MaskedBehavior" /> public Symbol(char symbol, ValidatorMethod validator) : this(symbol, validator, null) { }