17 yield
return interfacePrototype;
22 if (baseClass !=
null)
45 public static BadInterfaceValidatorResult
Validate(
47 IEnumerable<BadInterfacePrototype> interfaces)
49 List<BadInterfaceValidatorError> errors =
new List<BadInterfaceValidatorError>();
52 .SelectMany(x => x.GetAllInterfaces())
54 .SelectMany(x => x.Constraints)
59 constraint.
Validate(instance, errors);
62 return new BadInterfaceValidatorResult(errors.ToArray());
Implements a Type Instance in the BadScript Language.
Implements a Class Prototype for the BadScript Language.
BadClassPrototype? GetBaseClass()
Returns the base class.
Implements an Interface Constraint.
void Validate(BadClass obj, List< BadInterfaceValidatorError > errors)
Validates the given Object against this Constraint.
Implements a BadScript Interface Prototype.
override IReadOnlyCollection< BadInterfacePrototype > Interfaces
Contains Runtime Interface Objects.