With C# programming language 2.0, two very useful features regarding delegates are introduced: covariance and contra-variance. Before we go on to explaining these lets have a bit of review. Suppose we have two classes A and B with A being the parent class of B
class A
{
}
class B : A
{
[...]
Posts Tagged ‘delegates’
New Delegate Features – Covariance and Contra-variance
Posted in .Net Articles, C#, tagged contra variance, covariance, delegates on July 21, 2008 | 1 Comment »