public static void WriteNewLineIf(bool condition) { IChoProfile profile = GetDefaultContext(new StackFrame(1)); if (profile != null) { profile.AppendIf(condition, Environment.NewLine); } else { ChoTrace.WriteLineIf(condition, Environment.NewLine); } }
public static void WriteIf(bool condition, string format, params object[] args) { IChoProfile profile = GetDefaultContext(new StackFrame(1)); if (profile != null) { profile.AppendIf(condition, String.Format(format, args)); } else { ChoTrace.WriteIf(condition, String.Format(format, args)); } }
public static void WriteIf(bool condition, string msg) { IChoProfile profile = GetDefaultContext(new StackFrame(1)); if (profile != null) { profile.AppendIf(condition, msg); } else { ChoTrace.WriteIf(condition, msg); } }
public static void Write(string msg) { IChoProfile profile = GetDefaultContext(new StackFrame(1)); if (profile != null) { profile.AppendIf(true, msg); } else { ChoTrace.Write(msg); } }