Beispiel #1
0
        void IDisposable.Dispose()
        {
            if (input != null /*&& this.input is IDisposable*/)
            {
                ((IDisposable)input).Dispose();
            }

            input        = null;
            parseBuffer  = null;
            token        = null;
            tokenBuilder = null;

            GC.SuppressFinalize(this);
        }
Beispiel #2
0
        public TextParser(
            ConverterInput input,
            bool unwrapFlowed,
            bool unwrapDelSp,
            int maxRuns,
            bool testBoundaryConditions)
        {
            this.input = input;

            tokenBuilder = new TextTokenBuilder(null, maxRuns, testBoundaryConditions);

            token = tokenBuilder.Token;

            this.unwrapFlowed = unwrapFlowed;
            unwrapDelSpace    = unwrapDelSp;
        }