An open API service indexing awesome lists of open source software.

https://github.com/kolosovpetro/contravariantlist

Simple snippet to show the use of contravariance in C#.
https://github.com/kolosovpetro/contravariantlist

Last synced: 8 months ago
JSON representation

Simple snippet to show the use of contravariance in C#.

Awesome Lists containing this project

README

          

# Contravariant List

Simple snippet to show the use of contravariance in C#.

## Example

```cs
IContravariantList list = new ContravariantList();
list.Push(new Wolf());
list.Push(new Wolf());
Console.WriteLine(list.Count);
```