예제 #1
0
 /// <summary>
 /// Suppress message identified by code.
 /// Optionaly "unsuppress" by calling with suppress:false parameter.
 /// </summary>
 /// <param name="code"></param>
 /// <param name="suppress"></param>
 public static void Suppress(string code, bool suppress)
 {
     Class.SuppressCodeList.Item item = SuppressCodeList.Find(code);
     if (item == null)
     {
         item = new Class.SuppressCodeList.Item()
         {
             Code     = code,
             Suppress = suppress,
         };
         SuppressCodeList.Add(item);
     }
     else
     {
         item.Suppress = suppress;
     }
 }
예제 #2
0
 public static bool IsSuppressed(string code)
 {
     return(SuppressCodeList.IsSuppressed(code));
 }