System.Net.Mail.MailAddressParser.ReadCfwsAndThrowIfIncomplete C# (CSharp) Method

ReadCfwsAndThrowIfIncomplete() private static method

private static ReadCfwsAndThrowIfIncomplete ( string data, int index ) : int
data string
index int
return int
        private static int ReadCfwsAndThrowIfIncomplete(string data, int index)
        {
            index = WhitespaceReader.ReadCfwsReverse(data, index);
            if (index < 0)
            {
                // More components were expected.  Incomplete address, invalid
                throw new FormatException(SR.MailAddressInvalidFormat);
            }
            return index;
        }