private ValidationResult AddViolation(ViolationCollector a, SchemaViolation v) { if (a != null) { a.Add(v); } return v.ValidationResult; }
private ValidationResult AddViolation(ViolationCollector a, OperationInvalid v) { if (a != null) { a.Add(v); } return v.ValidationResult; }