我的问题的前提,用简单的英语:名为Foo的库依赖于名为Bar的库Foo中的类扩展了Bar中的类Foo定义简单传递给Bar的属性/方法应用程序FooBar仅依赖于Foo考虑以下示例:classProgram{staticvoidMain(string[]args){Foofoo=Foo.Instance;intid=foo.Id;//Compilerishappyfoo.DoWorkOnBar();//Compilerisnothappy}}Foo定义如下publicclassFoo:Bar{publicnewstaticFooInstance{get=>(Foo)Bar.Instanc