CVB.Net 14.0
SampleDatabaseExtensions Class Reference

Extension methods for use with generic collections More...

Static Public Member Functions

static string ToLabelString (this float[] arr, string format, string separator, char openingBracket, char closingBracket)
 Pretty-print a float vector label. More...
 
static string ToLabelString< TValue > (this TValue[] arr, string separator, char openingBracket, char closingBracket)
 Pretty-print a vector label. More...
 
static string ToLabelString< TValue > (this TValue[] arr, string separator)
 Pretty-print a vector label. More...
 
static string ToLabelString (this float[] arr, string format, string separator)
 Pretty-print a vector label. More...
 
static string ToLabelString< TValue > (this TValue[] arr)
 Pretty-print a vector label. More...
 
static bool HasSameValues (this float[] a, float[] b)
 Check two 1-dimensional arrays for content equality. More...
 

Detailed Description

Extension methods for use with generic collections

Member Function Documentation

◆ HasSameValues()

static bool HasSameValues ( this float[]  a,
float[]  b 
)
static

Check two 1-dimensional arrays for content equality.

Parameters
aarray 1 to be checked
barray 2 to be checked
Returns
True if the arrays have identical size and content, false otherwise (or if one of the arrays has > 1 dimension)

◆ ToLabelString() [1/2]

static string ToLabelString ( this float[]  arr,
string  format,
string  separator 
)
static

Pretty-print a vector label.

Parameters
arrthe array to attach the extension method to
separatorcharacter that separates the entries
formatformat string to use
Returns
String representation of the vector label.

◆ ToLabelString() [2/2]

static string ToLabelString ( this float[]  arr,
string  format,
string  separator,
char  openingBracket,
char  closingBracket 
)
static

Pretty-print a float vector label.

Parameters
arrThe array to apply the extension method to.
formatFormat string to use for printing.
separatorThe separator character to separate the vector entries with.
openingBracketThe opening bracket for outputting the vector content.
closingBracketThe closing bracket for outputting the vector content.
Returns
String representation of the vector label.

◆ ToLabelString< TValue >() [1/3]

static string ToLabelString< TValue > ( this TValue[]  arr)
static

Pretty-print a vector label.

Parameters
arrArray to print.
Returns
String representation of the vector label.
Template Parameters
TValueType of the array entries.

◆ ToLabelString< TValue >() [2/3]

static string ToLabelString< TValue > ( this TValue[]  arr,
string  separator 
)
static

Pretty-print a vector label.

Template Parameters
TValuetype of the elements stored in the array
Parameters
arrthe array to attach the extension method to
separatorcharacter that separates the entries
Returns
String representation of the vector label.

◆ ToLabelString< TValue >() [3/3]

static string ToLabelString< TValue > ( this TValue[]  arr,
string  separator,
char  openingBracket,
char  closingBracket 
)
static

Pretty-print a vector label.

Template Parameters
TValuetype of the elements stored in the array
Parameters
arrthe array to attach the extension method to
separatorcharacter that separates the entries
openingBracketleft bracket character
closingBracketright bracket character
Returns
String representation of the label array.