Beispiel #1
0
 private static void AssignFlags2List(ResourceFlag flag, IResourceList list)
 {
     foreach (IResource resource in list)
     {
         if (flag != null)
         {
             flag.SetOnResource(resource);
         }
         else
         {
             ResourceFlag.Clear(resource);
         }
     }
 }
Beispiel #2
0
 static public void ClearFlag(IResource resource)
 {
     Guard.NullArgument(resource, "resource");
     ResourceFlag.Clear(resource);
 }