Changeset 10892 for stable/HeuristicLab.Scripting/3.3/CSharpScriptBase.cs
- Timestamp:
- 05/26/14 16:41:12 (10 years ago)
- Location:
- stable
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 10510-10512,10566,10577,10642,10727,10731,10747,10761,10857,10865
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Scripting/3.3/CSharpScriptBase.cs
r10731 r10892 52 52 53 53 protected class EventWriter : TextWriter { 54 private readonly CSharpScriptBase usb;54 private readonly CSharpScriptBase script; 55 55 56 public EventWriter(CSharpScriptBase usb) {57 this. usb = usb;56 public EventWriter(CSharpScriptBase script) { 57 this.script = script; 58 58 } 59 59 … … 64 64 #region Write/WriteLine Overrides 65 65 #region Write 66 public override void Write(bool value) { usb.OnConsoleOutputChanged(value.ToString()); }67 public override void Write(char value) { usb.OnConsoleOutputChanged(value.ToString()); }68 public override void Write(char[] buffer) { usb.OnConsoleOutputChanged(new string(buffer)); }69 public override void Write(char[] buffer, int index, int count) { usb.OnConsoleOutputChanged(new string(buffer, index, count)); }70 public override void Write(decimal value) { usb.OnConsoleOutputChanged(value.ToString()); }71 public override void Write(double value) { usb.OnConsoleOutputChanged(value.ToString()); }72 public override void Write(float value) { usb.OnConsoleOutputChanged(value.ToString()); }73 public override void Write(int value) { usb.OnConsoleOutputChanged(value.ToString()); }74 public override void Write(long value) { usb.OnConsoleOutputChanged(value.ToString()); }75 public override void Write(object value) { usb.OnConsoleOutputChanged(value.ToString()); }76 public override void Write(string value) { usb.OnConsoleOutputChanged(value); }77 public override void Write(string format, object arg0) { usb.OnConsoleOutputChanged(string.Format(format, arg0)); }78 public override void Write(string format, object arg0, object arg1) { usb.OnConsoleOutputChanged(string.Format(format, arg0, arg0)); }79 public override void Write(string format, object arg0, object arg1, object arg2) { usb.OnConsoleOutputChanged(string.Format(format, arg0, arg1, arg2)); }80 public override void Write(string format, params object[] arg) { usb.OnConsoleOutputChanged(string.Format(format, arg)); }81 public override void Write(uint value) { usb.OnConsoleOutputChanged(value.ToString()); }82 public override void Write(ulong value) { usb.OnConsoleOutputChanged(value.ToString()); }66 public override void Write(bool value) { script.OnConsoleOutputChanged(value.ToString()); } 67 public override void Write(char value) { script.OnConsoleOutputChanged(value.ToString()); } 68 public override void Write(char[] buffer) { script.OnConsoleOutputChanged(new string(buffer)); } 69 public override void Write(char[] buffer, int index, int count) { script.OnConsoleOutputChanged(new string(buffer, index, count)); } 70 public override void Write(decimal value) { script.OnConsoleOutputChanged(value.ToString()); } 71 public override void Write(double value) { script.OnConsoleOutputChanged(value.ToString()); } 72 public override void Write(float value) { script.OnConsoleOutputChanged(value.ToString()); } 73 public override void Write(int value) { script.OnConsoleOutputChanged(value.ToString()); } 74 public override void Write(long value) { script.OnConsoleOutputChanged(value.ToString()); } 75 public override void Write(object value) { script.OnConsoleOutputChanged(value.ToString()); } 76 public override void Write(string value) { script.OnConsoleOutputChanged(value); } 77 public override void Write(string format, object arg0) { script.OnConsoleOutputChanged(string.Format(format, arg0)); } 78 public override void Write(string format, object arg0, object arg1) { script.OnConsoleOutputChanged(string.Format(format, arg0, arg0)); } 79 public override void Write(string format, object arg0, object arg1, object arg2) { script.OnConsoleOutputChanged(string.Format(format, arg0, arg1, arg2)); } 80 public override void Write(string format, params object[] arg) { script.OnConsoleOutputChanged(string.Format(format, arg)); } 81 public override void Write(uint value) { script.OnConsoleOutputChanged(value.ToString()); } 82 public override void Write(ulong value) { script.OnConsoleOutputChanged(value.ToString()); } 83 83 #endregion 84 84 85 85 #region WriteLine 86 public override void WriteLine() { usb.OnConsoleOutputChanged(Environment.NewLine); }87 public override void WriteLine(bool value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }88 public override void WriteLine(char value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }89 public override void WriteLine(char[] buffer) { usb.OnConsoleOutputChanged(new string(buffer) + Environment.NewLine); }90 public override void WriteLine(char[] buffer, int index, int count) { usb.OnConsoleOutputChanged(new string(buffer, index, count) + Environment.NewLine); }91 public override void WriteLine(decimal value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }92 public override void WriteLine(double value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }93 public override void WriteLine(float value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }94 public override void WriteLine(int value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }95 public override void WriteLine(long value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }96 public override void WriteLine(object value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }97 public override void WriteLine(string value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }98 public override void WriteLine(string format, object arg0) { usb.OnConsoleOutputChanged(string.Format(format, arg0) + Environment.NewLine); }99 public override void WriteLine(string format, object arg0, object arg1) { usb.OnConsoleOutputChanged(string.Format(format, arg0, arg1) + Environment.NewLine); }100 public override void WriteLine(string format, object arg0, object arg1, object arg2) { usb.OnConsoleOutputChanged(string.Format(format, arg0, arg1, arg2) + Environment.NewLine); }101 public override void WriteLine(string format, params object[] arg) { usb.OnConsoleOutputChanged(string.Format(format, arg) + Environment.NewLine); }102 public override void WriteLine(uint value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }103 public override void WriteLine(ulong value) { usb.OnConsoleOutputChanged(value + Environment.NewLine); }86 public override void WriteLine() { script.OnConsoleOutputChanged(Environment.NewLine); } 87 public override void WriteLine(bool value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 88 public override void WriteLine(char value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 89 public override void WriteLine(char[] buffer) { script.OnConsoleOutputChanged(new string(buffer) + Environment.NewLine); } 90 public override void WriteLine(char[] buffer, int index, int count) { script.OnConsoleOutputChanged(new string(buffer, index, count) + Environment.NewLine); } 91 public override void WriteLine(decimal value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 92 public override void WriteLine(double value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 93 public override void WriteLine(float value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 94 public override void WriteLine(int value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 95 public override void WriteLine(long value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 96 public override void WriteLine(object value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 97 public override void WriteLine(string value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 98 public override void WriteLine(string format, object arg0) { script.OnConsoleOutputChanged(string.Format(format, arg0) + Environment.NewLine); } 99 public override void WriteLine(string format, object arg0, object arg1) { script.OnConsoleOutputChanged(string.Format(format, arg0, arg1) + Environment.NewLine); } 100 public override void WriteLine(string format, object arg0, object arg1, object arg2) { script.OnConsoleOutputChanged(string.Format(format, arg0, arg1, arg2) + Environment.NewLine); } 101 public override void WriteLine(string format, params object[] arg) { script.OnConsoleOutputChanged(string.Format(format, arg) + Environment.NewLine); } 102 public override void WriteLine(uint value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 103 public override void WriteLine(ulong value) { script.OnConsoleOutputChanged(value + Environment.NewLine); } 104 104 #endregion 105 105 #endregion
Note: See TracChangeset
for help on using the changeset viewer.