Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Extensions.ArrayExtensions Class Reference

The extension methods for Array types. More...

Static Public Member Functions

static void CheckBounds (this Array array, int offset, int length)
 Checks that the given offset and length are valid for the current array. More...
 
static bool IsSegmentEqual< TValue > (this TValue[] array1, int offset1, TValue[] array2, int offset2, int length)
 Checks if two given array segments are equal by using their default equality comparer. More...
 

Detailed Description

The extension methods for Array types.

Since 6.0.

Member Function Documentation

static void PushTechnology.ClientInterface.Extensions.ArrayExtensions.CheckBounds ( this Array  array,
int  offset,
int  length 
)
static

Checks that the given offset and length are valid for the current array.

Since 5.8.

Parameters
arrayThe array to check against.
offsetThe starting index of the array segment.
lengthThe length of the array segment.
Exceptions
ArgumentNullExceptionThe given array is null.
ArgumentOutOfRangeExceptionThe given offset or length are negative or bigger than the given array.
static bool PushTechnology.ClientInterface.Extensions.ArrayExtensions.IsSegmentEqual< TValue > ( this TValue[]  array1,
int  offset1,
TValue[]  array2,
int  offset2,
int  length 
)
static

Checks if two given array segments are equal by using their default equality comparer.

Since 6.0.

Template Parameters
TValueThe array value type.
Parameters
array1The first array.
offset1The starting index of the first array segment.
array2The second array.
offset2The starting index of the second array segment.
lengthThe length of both both array segments.
Returns
True if all it

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