コード例 #1
0
ファイル: Guard.cs プロジェクト: davidjdriver/Driven
 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));
 }