Modifier

Partager via


ArrayExtensions.Count Method

Definition

Overloads

Count<T>(T[,,], T)

Counts the number of occurrences of a given value into a target 3D T array instance.

Count<T>(T[,], T)

Counts the number of occurrences of a given value into a target 2D T array instance.

Count<T>(T[], T)

Counts the number of occurrences of a given value into a target T array instance.

Count<T>(T[,,], T)

Counts the number of occurrences of a given value into a target 3D T array instance.

public static int Count<T> (this T[,,] array, T value) where T : IEquatable<T>;
static member Count : 'T[,,] * 'T -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Count(Of T As IEquatable(Of T)) (array As T(,,), value As T) As Integer

Type Parameters

T

The type of items in the input 3D T array instance.

Parameters

array
T[,,]

The input 3D T array instance.

value
T

The T value to look for.

Returns

The number of occurrences of value in array.

Applies to

Count<T>(T[,], T)

Counts the number of occurrences of a given value into a target 2D T array instance.

public static int Count<T> (this T[,] array, T value) where T : IEquatable<T>;
static member Count : 'T[,] * 'T -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Count(Of T As IEquatable(Of T)) (array As T(,), value As T) As Integer

Type Parameters

T

The type of items in the input 2D T array instance.

Parameters

array
T[,]

The input 2D T array instance.

value
T

The T value to look for.

Returns

The number of occurrences of value in array.

Applies to

Count<T>(T[], T)

Counts the number of occurrences of a given value into a target T array instance.

public static int Count<T> (this T[] array, T value) where T : IEquatable<T>;
static member Count : 'T[] * 'T -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Count(Of T As IEquatable(Of T)) (array As T(), value As T) As Integer

Type Parameters

T

The type of items in the input T array instance.

Parameters

array
T[]

The input T array instance.

value
T

The T value to look for.

Returns

The number of occurrences of value in array.

Applies to