如果启用了可为空的引用类型,那么如果这样声明,则以下字符串的值是什么?
string text;
c# non-nullable c#-8.0 nullable-reference-types
为什么IAsyncEnumerator没有Reset方法?它仅具有Current属性和MoveNextAsync()方法。
public interface IAsyncEnumerator<out T> : IAsyncDisposable { T Current { get; } ValueTask<bool> MoveNextAsync(); }
c# async-await c#-8.0
c# ×2
c#-8.0 ×2
async-await ×1
non-nullable ×1
nullable-reference-types ×1