Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
A generic type is declared with conflicting constraints on a type parameter.
The following statement can generate this error.
Public Class testClass(Of t As {Structure, Class })
The constraints Structure and Class cause a conflict for type parameter t, because the Structure constraint requires that the corresponding type argument be a value type, while Class requires that it be a reference type.
Error ID: BC32119
To correct this error
- Change the type parameter constraints to avoid conflicts.
See Also
Concepts
Value Types and Reference Types