Type argument '<typeargumentname>' does not satisfy the 'Class' constraint for type parameter '<typeparametername>'
A type argument supplied to a generic type does not satisfy the reference type constraint on its corresponding type parameter.
A constraint list imposes requirements on the type argument passed to the type parameter. If you do not include any specific class or interface in the constraint list, you can impose a general requirement by specifying one of the following:
The type argument must be a value type (include the Structure (Visual Basic) constraint)
The type argument must be a reference type (include the Class (Visual Basic) constraint)
You cannot specify both Structure
and Class
for the same type parameter, and you cannot specify either one more than once.
Error ID: BC32106
- Select a type argument of any reference type.
.NET feedback
.NET is an open source project. Select a link to provide feedback: