Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
buyaa-n committed Oct 6, 2022
1 parent b0fefac commit e1b618f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/fundamentals/code-analysis/quality-rules/ca2260.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ helpviewer_keywords:
- CA2260
author: buyaa-n
---
# CA2260: Providing a 'DynamicInterfaceCastableImplementation' interface in Visual Basic is unsupported
# CA2260: Implement Generic Math Interfaces Correctly

| | Value |
| ----------------------------------- | ------------------------------------ |
Expand All @@ -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.
Expand Down

0 comments on commit e1b618f

Please sign in to comment.