C#逆变接口实例和解析
ContraVarianceBody.inInterface<string> Instr = ObjClass;//逆变性 Console.WriteLine(Instr.outMethod("getIt"));//逆变接口常常用于获取数据并处理、转化成指定的类型 //协变接口常常用于返回、输出各种类型的数据
ContraVarianceBody.inInterface<string> Instr = ObjClass;//逆变性 Console.WriteLine(Instr.outMethod("getIt"));//逆变接口常常用于获取数据并处理、转化成指定的类型 //协变接口常常用于返回、输出各种类型的数据