【发布时间】:2021-05-25 00:21:23
【问题描述】:
例如:
interface IDottable : IGetDottable
{
bool try_dot_operator(string name);
// ... more methods
IDottable Dottable => this;
}
interface IGetDottable
{
IDottable Dottable {get;}
}
它给了我:
"'IDottable.Dottable' hides inherited member 'IGetDottable.Dottable'. Use the new keyword if hiding was intended.".
【问题讨论】:
标签: c# interface c#-8.0 default-implementation