示例#1
0
        public void Test()
        {
            //Covariance<Base> coB = new CoContraVarianceCollection();
            //Covariance<Derived> coD = coB;
            Covariance <Derived> coD = new CoContraVariance();
            Covariance <Base>    coB = coD;



            //Contravariance<Derived> contraD = new CoContraVarianceCollection();
            //Contravariance<Base> contraB = contraD;
            Contravariance <Base>    contraB = new CoContraVariance();
            Contravariance <Derived> contraD = contraB;
        }
示例#2
0
 public static CoContraVariance GetVariances() =>
 _coll ?? (_coll = new CoContraVariance());