public override bool Equals(object obj) { if (base.Equals(obj)) { return(true); } OutputDelegateWriter odw = obj as OutputDelegateWriter; if (odw == null) { return(false); } return(odw.output.Equals(output)); }
/// <summary> /// /// </summary> /// <param name="context_name"></param> /// <param name="stringCodeReader"></param> /// <returns></returns> public override object Read(string context_name, System.IO.TextReader stringCodeReader, OutputDelegate WriteLine) { object res = null; int line = 0; while (stringCodeReader.Peek() != -1) { line++; TextWriter tw = new OutputDelegateWriter(WriteLine); res = prologClient.Read(stringCodeReader.ReadLine(), tw); } return res; } // method: Read