Memory<T>.IsEmpty Memory<T>.IsEmpty Memory<T>.IsEmpty Memory<T>.IsEmpty Property

定义

指示当前实例是否为空。Indicates whether the current instance is empty.

public:
 property bool IsEmpty { bool get(); };
public bool IsEmpty { get; }
member this.IsEmpty : bool
Public ReadOnly Property IsEmpty As Boolean

属性值

true 如果当前实例为空;否则为falsetrue if the current instance is empty; otherwise, false.

注解

一个Memory<T>对象为空,如果其长度为 0。A Memory<T> object is empty if its length is 0.

适用于