예제 #1
0
 public Setter(Flag f)
 {
     if (f.isSet)
         throw new ApplicationException("Trying to set flag which already is set!");
     flag = f;
     flag.isSet = true;
 }
예제 #2
0
 public static IDisposable Set(Flag f)
 {
     return new Setter(f);
 }