protected override void Dispose() { pullSource = null; pushSource = null; parseBuffer = null; pushChunkBuffer = null; base.Dispose(); }
public ConverterUnicodeInput(object source, bool push, int maxParseToken, bool testBoundaryConditions, IProgressMonitor progressMonitor) : base(progressMonitor) { if (push) { pushSource = (source as ConverterWriter); } else { pullSource = (source as TextReader); } maxTokenSize = maxParseToken; parseBuffer = new char[testBoundaryConditions ? 123 : 4096]; if (pushSource != null) { pushSource.SetSink(this); } }