編輯

共用方式為


Vector.Count<T>(Vector<T>, T) Method

Definition

Determines the number of elements in a vector that are equal to a given value.

public:
generic <typename T>
 static int Count(System::Numerics::Vector<T> vector, T value);
public static int Count<T>(System.Numerics.Vector<T> vector, T value);
static member Count : System.Numerics.Vector<'T> * 'T -> int
Public Function Count(Of T) (vector As Vector(Of T), value As T) As Integer

Type Parameters

T

The type of the elements in the vector.

Parameters

vector
Vector<T>

The vector whose elements are being checked.

value
T

The value to check for in vector

Returns

The number of elements in vector that are equal to value.

Applies to