Query module CastThisToTypeParameter

name
Cast of ‘this’ to a type parameter
description
Casting ‘this’ to a type parameter of the current type masks an implicit type constraint that should be explicitly stated.
kind
problem
problem.severity
recommendation
precision
high
id
cs/cast-of-this-to-type-parameter
tags
reliability maintainability language-features

Imports

csharp

The default C# QL library.