It would be nice for some people to explain why, let's do it: - Covariance(out) · Enables you to use a more derived type than originally specified. · You can assign an instance of IEnumerable (IEnumerable(Of Derived) in Visual Basic) to a variable of type IEnumerable. - Contravariance(in) · Enables you to use a more generic (less derived) type than originally specified. · You can assign an instance of IEnumerable (IEnumerable(Of Base) in Visual Basic) to a variable of type IEnumerable. - Invariance · Means that you can use only the type originally specified; so an invariant generic type parameter is neither covariant nor contravariant. · You cannot assign an instance of IEnumerable (IEnumerable(Of Base) in Visual Basic) to a variable of type IEnumerable or vice versa. Font : docs.microsoft.com/en-us/dotnet/standard/generics/covariance-and-contravariance
Hadi Hariri's talks are always great.
this dude makes learn programming so easy and funny, thumbs up
amazing talk
How to get that Nyancat loading bar when compiling? I want this in Android Studio now! :D
nyan progress bar plugin.
Argh, no one corrected him for mixing up covariance and contravariance?! 😐
It would be nice for some people to explain why, let's do it:
- Covariance(out)
· Enables you to use a more derived type than originally specified.
· You can assign an instance of IEnumerable (IEnumerable(Of Derived) in Visual Basic) to a variable of type IEnumerable.
- Contravariance(in)
· Enables you to use a more generic (less derived) type than originally specified.
· You can assign an instance of IEnumerable (IEnumerable(Of Base) in Visual Basic) to a variable of type IEnumerable.
- Invariance
· Means that you can use only the type originally specified; so an invariant generic type parameter is neither covariant nor contravariant.
· You cannot assign an instance of IEnumerable (IEnumerable(Of Base) in Visual Basic) to a variable of type IEnumerable or vice versa.
Font : docs.microsoft.com/en-us/dotnet/standard/generics/covariance-and-contravariance
I trusted Intellij
What font is he using?
Firacode
@@PavitraGolchha thanks!
looks like FiraCode
Fira Code with font ligatures enabled!
Omg how better he explains
The talk's really good except for that accent of his, what's with that?
31:47