TypedRest for .NET 1.3.6
build type-safe fluent-style REST API clients
TypedRest.ArrayExtensions Class Reference

Provides extension methods for arrays. More...

Static Public Member Functions

static int IndexOfPattern< T > (this T[] array, T[] pattern, int startIndex=0, int count=int.MaxValue)
 Searches for the starting index of a specific pattern/sequence in the array. More...
 

Detailed Description

Provides extension methods for arrays.

Member Function Documentation

◆ IndexOfPattern< T >()

static int TypedRest.ArrayExtensions.IndexOfPattern< T > ( this T[]  array,
T[]  pattern,
int  startIndex = 0,
int  count = int.MaxValue 
)
inlinestatic

Searches for the starting index of a specific pattern/sequence in the array.

Parameters
arrayThe array to search.
patternThe pattern to search for.
startIndexThe starting index of the search.
countThe maximum number of elements in the array to search.
Template Parameters
TThe type of the elements of the array.
Returns
The start index of the first occurrence of the pattern, if found; otherwise, –1.
Type Constraints
T :IEquatable<T> 

The documentation for this class was generated from the following file: