Ejemplo n.º 1
0
 public static void Debug(DebugInfoDetail detail, string msg)
 {
     if (debugInfoDetail.HasFlag(detail))
     {
         Debug(msg);
     }
 }
Ejemplo n.º 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()));
     }
 }
Ejemplo n.º 3
0
 public static bool HasDetail(DebugInfoDetail detail)
 {
     return((debugInfoDetail & detail) == detail);
 }
Ejemplo n.º 4
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()));
     }
 }
Ejemplo n.º 5
0
 public static bool HasDetail(DebugInfoDetail detail)
 {
     return (debugInfoDetail & detail) == detail;
 }
Ejemplo n.º 6
0
 public static void Debug(DebugInfoDetail detail, string msg)
 {
     if (debugInfoDetail.HasFlag(detail))
     {
         Debug(msg);
     }
 }