Flush Method
Flushes the parser and checks its end state.
Syntax
[VB.NET] Public Sub Flush()
[C#] public void Flush();
Remarks
When Flush is called, the parser flushes all its buffers, firing events as necessary, and then checks its end state. If Validate is true, the parser verifies that all open elements were closed, returning an error if not.