예제 #1
0
 public Guard AddViolation(GuardViolation guardViolation)
 {
     this.HasViolations = true;
     this.guardViolations.Add(guardViolation);
     return(this);
 }
예제 #2
0
 public static Guard ExtAddViolation(this Guard guard, GuardViolation guardViolation)
 {
     return((guard ?? new Guard()).AddViolation(guardViolation));
 }