System.Xml.XmlBaseWriter.VerifyWhitespace C# (CSharp) Method

VerifyWhitespace() private method

private VerifyWhitespace ( string s ) : void
s string
return void
        private void VerifyWhitespace(string s)
        {
            for (int i = 0; i < s.Length; i++)
                if (!IsWhitespace(s[i]))
                    throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.XmlIllegalOutsideRoot)));
        }

Same methods

XmlBaseWriter::VerifyWhitespace ( char ch ) : void
XmlBaseWriter::VerifyWhitespace ( char chars, int offset, int count ) : void