Strange “The type arguments for method cannot be inferred from the usage.”
问题 I'm scratching my head over trying to implement some code to share textures between D3D10 and D3D11 in SlimDX. This method is causing the problem: public void InitialiseTextureSharing() { // A DirectX10 Texture2D sharing the DirectX11 Texture2D sharedResource = new SlimDX.DXGI.Resource(textureD3D11); textureD3D10 = device10_1.OpenSharedResource(sharedResource.SharedHandle); // This fails to compile! } I get the following error from the compiler: The type arguments for method 'SlimDX