System.ComponentModel.MaskedTextProvider.TestEscapeChar C# (CSharp) Method

TestEscapeChar() private method

private TestEscapeChar ( char input, int position, CharDescriptor charDex ) : bool
input char
position int
charDex CharDescriptor
return bool
        private bool TestEscapeChar(char input, int position, CharDescriptor charDex)
        {
            // Test literals first.  See VSW#454461.
            // If the position holds a literal, it is escaped only if the input is the same as the literal independently on
            // the input value (space, prompt,...).
            if (IsLiteralPosition(charDex))
            {
                return SkipLiterals && input == _testString[position];
            }

            if ((ResetOnPrompt && (input == _promptChar)) || (ResetOnSpace && (input == spaceChar)))
            {
                return true;
            }

            return false;
        }

Same methods

MaskedTextProvider::TestEscapeChar ( char input, int position ) : bool