private void ReadWhitespace() { bool isFirstTextInContent = !_scannerStack.CurrentlyInContent; AccumulatedText.Paste(_xmlReader.Value, isFirstTextInContent); // Whitespace, by itself, does not change the "InContent" state. }
private void ReadText() { // Trim the leading whitespace from the text if it is the first bit on content. bool isFirstTextInContent = !_scannerStack.CurrentlyInContent; AccumulatedText.Paste(_xmlReader.Value, isFirstTextInContent); _scannerStack.CurrentlyInContent = true; }