Since DEBUGMSG isn't directly available in managed code, and it's extremely useful, here's an implementation:
public class Debugging
{
[DllImport("coredll.dll", EntryPoint="NKDbgPrintfW")]
private static extern void DebugMsg(string message);
public static void DEBUGMSG(bool condition, string message)
{
if(condition)
DebugMsg(message);
}
}
-----------------
Chris Tacke, eMVP
Applied Data Support