Simple Variance

The SimpleVariance sample program shows VB 10.0 support for covariance and contravariance when using generic types in delegates and interfaces. In VB 9.0 generic types were invariant. As a result, this sample compiles fine in VB 10.0, while it does not compile in previous...

 
 
 
 
 
(0)
2,331 times
Add to favorites
6/20/2011
E-mail Twitter del.icio.us Digg Facebook