A Girl Among GeeksKarina Wilk

variance

C#, Tech

<in T> vs <out T> – Contravariance vs Covariance – (the easier) part 1.

<in T> vs <out T> – Contravariance vs Covariance – (the easier) part 1.

Have you ever seen these mysterious ‘in’ and ‘out’ keywords in generic interfaces’ definitions? If so, you’ve probably already checked what it means, but if not… You better read this and the next post (I promise, I will write it soon, not like always :P). So today we will talk about the basics of variance in our own generic interfaces.

Continue Reading
A Girl Among Geeks

Recent Comments

  • dotnetomaniak.pl on Cannot implicitly convert type ‘Abc<Derived>’ to ‘IAbc<Base>’ – Contravariance vs Covariance – part 2.
  • dotnetomaniak.pl on <in T> vs <out T> – Contravariance vs Covariance – (the easier) part 1.
  • dotnetomaniak.pl on Entity Framework .AsNoTracking() – why & how (EF and EF Core)
  • dotnetomaniak.pl on Enumerable.Empty() vs new ‘IEnumerable’() – what’s better?
  • dotnetomaniak.pl on How to change language in Visual Studio 2019 (after installation)

Tags

.net .net Core asp.net core asp.net core mvc c# c# attribute c# attributes c# facts daj się poznać 2017 debug debugging dsp2017 elasticsearch Get Noticed 2017 Microsoft programming ReMaster ReSharper search engine Visual Studio

Archives

  • October 2020
  • August 2020
  • April 2020
  • October 2019
  • June 2019
  • May 2019
  • March 2019
  • November 2018
  • October 2018
  • August 2018
  • May 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Pages

  • About me

© Copyright 2023 A Girl Among Geeks · Designed by Theme Junkie

We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.