Is it possible to mark a property of a parameter as null/not null after a function returns?

后端 未结 0 1256
不知归路
不知归路 2020-11-27 19:05

If I have a function bool Foo(string? input), then I can annotate it to indicate that if the return is true then input is not null:

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