ArrayExtensions.Count Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Count<T>(T[,,], T) |
Counts the number of occurrences of a given value into a target 3D |
Count<T>(T[,], T) |
Counts the number of occurrences of a given value into a target 2D |
Count<T>(T[], T) |
Counts the number of occurrences of a given value into a target |
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
.