Example #1
0
 public static void Debug(DebugInfoDetail detail, string msg)
 {
     if (debugInfoDetail.HasFlag(detail))
     {
         Debug(msg);
     }
 }
Example #2
0
 public static void Toggle(DebugInfoDetail detail)
 {
     if (debugInfoDetail.HasFlag(detail))
     {
         debugInfoDetail ^= detail;
         Debug(string.Format("Debugging of {0} disabled.", detail.ToString()));
     }
     else
     {
         debugInfoDetail |= detail;
         Debug(string.Format("Debugging of {0} enabled.", detail.ToString()));
     }
 }
Example #3
0
 public static bool HasDetail(DebugInfoDetail detail)
 {
     return((debugInfoDetail & detail) == detail);
 }
 public static void Toggle(DebugInfoDetail detail)
 {
     if (debugInfoDetail.HasFlag(detail))
     {
         debugInfoDetail ^= detail;
         Debug(string.Format("Debugging of {0} disabled.", detail.ToString()));
     }
     else
     {
         debugInfoDetail |= detail;
         Debug(string.Format("Debugging of {0} enabled.", detail.ToString()));
     }
 }
 public static bool HasDetail(DebugInfoDetail detail)
 {
     return (debugInfoDetail & detail) == detail;
 }
 public static void Debug(DebugInfoDetail detail, string msg)
 {
     if (debugInfoDetail.HasFlag(detail))
     {
         Debug(msg);
     }
 }