Span<T>.Clear Span<T>.Clear Span<T>.Clear Span<T>.Clear Method

定义

清除此 Span<T> 对象的内容。Clears the contents of this Span<T> object.

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

注解

方法将Span<T>对象中的项设置为其默认值。 ClearThe Clear method sets the items in the Span<T> object to their default values. 它不会从中Span<T>删除项。It does not remove items from the Span<T>.

适用于