XBinder C# Runtime Library  2.8
Static Public Member Functions | List of all members
com.objsys.xbinder.runtime.XBArrays Class Reference

Utility class with array helpers More...

Static Public Member Functions

static int linearSearch (System.Object[] array, System.Object key)
 This performs a linear search in an array for a matching element. The equals method is used for comparison. More...
 
static string ToString (int[] array)
 Returns a string representation of an array of ints. Format is "[(value1)], [(value2)], ...". More...
 
static string ToString (string[] array)
 Returns a string representation of an array of strings. Format is "[(value1)], [(value2)], ...". More...
 

Detailed Description

Utility class with array helpers

Member Function Documentation

◆ linearSearch()

static int com.objsys.xbinder.runtime.XBArrays.linearSearch ( System.Object []  array,
System.Object  key 
)
static

This performs a linear search in an array for a matching element. The equals method is used for comparison.

Parameters
array
key
Returns
The index of the first element that matches, or -1 if there is no match.

◆ ToString() [1/2]

static string com.objsys.xbinder.runtime.XBArrays.ToString ( int []  array)
static

Returns a string representation of an array of ints. Format is "[(value1)], [(value2)], ...".

Parameters
arrayThe array of ints.
Returns
A string representation of the array.

◆ ToString() [2/2]

static string com.objsys.xbinder.runtime.XBArrays.ToString ( string []  array)
static

Returns a string representation of an array of strings. Format is "[(value1)], [(value2)], ...".

Parameters
arrayThe array of strings.
Returns
A string representation of the array.