public static void WriteLineIf(bool f, string category, string message) { message = "[" + SafeNativeMethods.GetCurrentThreadId().ToString("x", CultureInfo.InvariantCulture) + "] " + message; Debug.WriteLineIf( f, message, category); }
public static void WriteLineIf(bool f, string category, string message, params object[] args) { message = "[" + SafeNativeMethods.GetCurrentThreadId().ToString("x", CultureInfo.InvariantCulture) + "] " + message; Debug.WriteLineIf( f, string.Format( CultureInfo.InvariantCulture, message, args), category); }
public static void WriteLineIf(bool f, string category, string message) { int currentThreadId = SafeNativeMethods.GetCurrentThreadId(); message = string.Concat("[", currentThreadId.ToString("x", CultureInfo.InvariantCulture), "] ", message); }