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

SetString() private method

Sets the characters in the test string starting from the specified position, to the ones in the input string. It assumes there's enough edit positions to hold the characters in the input string (so call TestString before calling SetString). The position is relative to the test string.
private SetString ( string input, int testPosition ) : void
input string
testPosition int
return void
        private void SetString(string input, int testPosition)
        {
            foreach (char ch in input)
            {
                // If character is not to be escaped, we need to find the first edit position to test it in.
                if (!TestEscapeChar(ch, testPosition))
                {
                    testPosition = FindEditPositionFrom(testPosition, forward);
                }

                SetChar(ch, testPosition);
                testPosition++;
            }
        }