public void Print(TextWriter writer, int nTabs) { writer.Write("( "); x.Print(writer, nTabs); y.Print(writer, nTabs); writer.Write(") "); }
public void Print(TextWriter writer, int nTabs) { Logging.PrintTabs(writer, nTabs); switch (m_Type) { // Direct values. case P_Int: writer.Write(":GInteger "); m_IntVal.Print(writer, 0); break; case P_Bool: writer.Write(":GBoolean "); m_BoolVal.Print(writer, 0); break; case P_String: writer.Write(":GOctetString "); m_StrVal.Print(writer, 0); break; case P_ObjRef: writer.Write(":GObjectRef "); m_ObjRefVal.Print(writer, 0); break; case P_ContentRef: writer.Write(":GObjectRef "); m_ContentRefVal.Print(writer, 0); break; case P_Null: break; } }