The document is archived and information here might be outdated
Compiler Error CS0406
The class type constraint 'constraint' must come before any other constraints
When a generic type or method has a class type constraint, that constraint must be listed first. To avoid this error, move the class type constraint to the beginning of the constraint list.