Cannot cast between generic types

后端 未结 4 1443
清歌不尽
清歌不尽 2021-01-14 21:54

I\'m trying to do this:

interface IA
{
}

class A : IA
{
}

class Foo where T: IA
{
}

class Program
{
    static void Main( string[] args )
    {
          


        
4条回答
提交回复
热议问题