Memory<T>.IsEmpty 属性

定义

指示当前实例是否为空。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

属性值

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.

适用于