Wolfgang Gallo

Wolfgang Gallo gallo

Niner since 2006


  • Inside C# 4.0: dynamic typing, optional parameters, covariance and ​contravaria​nce

    I'm wondering what influence the optional and named parameters will have on interfaces and inheritance in general. Will a method parameter have to have the same name in an implementation as in the interface? This would help for code quality and maintainability. If not, will the compiler keep track of how a parameter gets renamed in the inheritance hierarchy or do all signatures get treated individually? Can a non optional parameter be made optional in an inherited method? What about the other way round?

    One more question: when will C# get XML literals like Visual Basic? I've been waintig for this since Comega...