From 0cd0e574041c6d9b764c59942cd86f554407cf81 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Mon, 13 May 2024 13:01:36 -0400 Subject: [PATCH] Fix description to fix the error Fixes anonymously reported issue. --- docs/csharp/language-reference/compiler-messages/cs0311.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/language-reference/compiler-messages/cs0311.md b/docs/csharp/language-reference/compiler-messages/cs0311.md index e431352df35e8..d5a69eaaf3511 100644 --- a/docs/csharp/language-reference/compiler-messages/cs0311.md +++ b/docs/csharp/language-reference/compiler-messages/cs0311.md @@ -16,7 +16,7 @@ The type 'type1' cannot be used as type parameter 'T' in the generic type or met ## To correct this error -1. Change the argument you are using to create the class. +1. Change the type argument you are using to own that fulfills the constraint. 2. If you own the class, you can remove the constraint or else do something to enable an implicit reference or identity conversion. For example, you can make the second type inherit from the first.