sestoft / C5

C5 generic collection library for C#/.NET
http://www.itu.dk/research/c5/
MIT License
1.03k stars 181 forks source link

The covariant type parameter `T' must be invariantly valid #38

Closed stranger-games closed 8 years ago

stranger-games commented 8 years ago

Hi,

I am trying to use your library in my unity game. I copied the CS folder in my project, and it seems to be working well, but I get this two compilation errors.

Assets/C5/IReadOnlyCollection.cs(8,22): error CS1961: The covariant type parameter T' must be invariantly valid onSystem.Collections.Generic.IReadOnlyCollection'

Assets/C5/IReadOnlyList.cs(8,22): error CS1961: The covariant type parameter T' must be invariantly valid onSystem.Collections.Generic.IReadOnlyList'

Thanks for advance.

ondfisk commented 8 years ago

You should reference the whole library using NuGet: Install-Package C5

stranger-games commented 8 years ago

Thank you!