Cannot use interface default methods

前端 未结 2 1792
陌清茗
陌清茗 2021-01-23 02:23

I have installed new version of visual studio and set the project to C# 8. When I tried to use new interface feature like below it said that I cannot implement in interface whic

2条回答
  •  余生分开走
    2021-01-23 03:14

    Default interface methods aren't available in .NET Core 3.0 Preview 1. This really is a preview preview - even async enumerables won't work without some manual fixes. The Roslyn team decided to release the preview even though some things wouldn't work right out :

    Should we tell users to skip this feature until preview 2?

    This is a preview, not RTM. If we told users to skip preview features because they had bugs we should just stop shipping previews altogether.

提交回复
热议问题