From e0fdc142533c52c730c5075ad9c5ff120327c65c Mon Sep 17 00:00:00 2001 From: Buyaa Namnan Date: Thu, 6 Oct 2022 12:00:34 -0700 Subject: [PATCH] Fix lint error --- docs/fundamentals/code-analysis/quality-rules/ca2260.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/fundamentals/code-analysis/quality-rules/ca2260.md b/docs/fundamentals/code-analysis/quality-rules/ca2260.md index f5655f1c5928b..5d165b0b9e3d5 100644 --- a/docs/fundamentals/code-analysis/quality-rules/ca2260.md +++ b/docs/fundamentals/code-analysis/quality-rules/ca2260.md @@ -27,7 +27,6 @@ When not passing the type itself as a type parameter when implementing a generic Some generic math interfaces introduce static abstract members, the only way to access those static members is through a generic constraint, the generic constraints implements Curiously Recurring Template Pattern (CRTP), therefore require the derived type itself to be used for the self recurring type parameter. If a type implements such interface without passing required type parameter and CA2260 is ignored the code would compile successfully but the static abstract will not me accessible therefore the type will not be usable, compiler would warn with CS0315 on such usage. - ## How to fix violations Pass correct type parameter for self recurring type parameter (TSelf) when implementing those interfaces.