17 yield
return interfacePrototype;
22 if (baseClass !=
null)
46 IEnumerable<BadInterfacePrototype> interfaces)
48 List<BadInterfaceValidatorError> errors =
new List<BadInterfaceValidatorError>();
51 .SelectMany(x => x.GetAllInterfaces())
53 .SelectMany(x => x.Constraints)
58 constraint.
Validate(instance, errors);
61 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.