【发布时间】:2019-12-07 12:39:26
【问题描述】:
我最近阅读了有关 C# 8.0 具有接口默认实现的信息,因此我进入我的项目并尝试了它,但我遇到了一个错误。 Target runtime doesn't support default interface implementation。有没有办法解决这个问题?
string CommandName { get => CommandName.ToUpperInvariant(); }
编辑
我正在使用Console
【问题讨论】:
标签: c# interface c#-8.0 default-implementation