Contravariance

Allowing a broader generic input type to be used where a more specific type is expected.

What is Contravariance in C#?

Contravariance — Allowing a broader generic input type to be used where a more specific type is expected.

interface IHandler<in T>
{
    void Handle(T value);
}

Level: Freelancer · More C# terms at this level

Updated