小编Hra*_*yan的帖子

C#8中非空引用类型的默认值是什么?

如果启用了可为空的引用类型,那么如果这样声明,则以下字符串的值是什么?

string text;
Run Code Online (Sandbox Code Playgroud)

c# non-nullable c#-8.0 nullable-reference-types

5
推荐指数
1
解决办法
405
查看次数

为什么IAsyncEnumerator在C#8中没有Reset方法?

为什么IAsyncEnumerator没有Reset方法?它仅具有Current属性和MoveNextAsync()方法。

public interface IAsyncEnumerator<out T> : IAsyncDisposable
{
    T Current
    {
        get;
    }

    ValueTask<bool> MoveNextAsync();
}
Run Code Online (Sandbox Code Playgroud)

c# async-await c#-8.0

1
推荐指数
1
解决办法
110
查看次数