TYPCONS
925
Type type does not meet constraint
One of the following occurred:
- You’ve declared a class constraint on a type parameter, and the type used to create the constructed type does not match or is not a child of the class mentioned in the constraint.
- You’ve declared an interface constraint on a type parameter, and the type used to create the constructed type does not implement the specified interface.
- You’ve declared a constructor constraint on a type parameter, and the type used to create the constructed type does not have a default constructor.
- A generic class inheriting a constraint provides a constraint on the same type parameter, which conflicts with the parent’s constraints.