private void VerifyWhitespace(char[] chars, int offset, int count) { for (int i = 0; i < count; i++) if (!IsWhitespace(chars[offset + i])) throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.XmlIllegalOutsideRoot))); }