Peter Peter
  • Log in

Copyright © 2025

Powered by BlogEngine.NET

Designed by Francis Bio

Overloading & Co/Contra-variance could break your code!

08 April 2010 Peter-Himschoot .NET Development, VS2010
Co and contra-variance were introduced to VB.NET and C# to make working with certain classes more natural (“because it should work”). But beware, I was experimenting a bit with this and found following possible breaking change. I started with these two classes: C# 1: public class Person... [More]
Newer posts >>