What is the reason why nullable reference types defined in interface members aren't required to be nullable in the implementations?

前端 未结 0 1256
孤街浪徒
孤街浪徒 2020-12-10 01:15

Starting with C# 8.0 I can do this:

interface IMyInterface
{
#nullable enable
    void DoSomething(string? withValue);
#nullable disable
}

i.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题