Esempio n. 1
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            OPTDocument output = parser.ReadLine(inputString);

            if (output != null)
            {
                WriteObject(output);
            }
        }
Esempio n. 2
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            string line;

            while ((line = reader.ReadLine()) != null)
            {
                try {
                    OPTDocument output = parser.ReadLine(line);
                    if (output != null)
                    {
                        WriteObject(output);
                    }
                } catch (InvalidDataException err) {
                    WriteWarning(err.ToString());
                }
            }
        }