コード例 #1
0
 /// <summary>
 /// Converts an array of System.Byte values into their corresponding character values and concatentes them into a string.
 /// </summary>
 /// <param name="value">An Array of byte values to be converted.</param>
 /// <returns>A string value.</returns>
 public static string ToString(byte[] value)
 {
     return(ArrayConvert.ConcatArray(Array.ConvertAll(value, new Converter <byte, char>(Convert.ToChar))));
 }
コード例 #2
0
 /// <summary>
 /// Sorts the elements of an array using a basic 'BubbleSort' algorythm. This method defaults sort direction to ascending.
 /// </summary>
 /// <param name="values">The array of values to be sorted.  This array must be passed with the 'ref' argument prefix and the contents will be directly modified.</param>
 /// <returns>A System.Boolean value indicating true if the array was successfully sorted. Otherwise, false.</returns>
 public static bool BubbleSort(ref Array values)
 {
     return(ArrayConvert.BubbleSort(ref values, SortDirection.Ascending));
 }
コード例 #3
0
 //***************************************************************************
 // Static Methods
 //
 /// <summary>
 /// Concatenates the result of each of the Array element's "ToString()" method into a single string value.
 /// </summary>
 /// <param name="value">An Array of values.</param>
 /// <returns>A string value.</returns>
 public static string ConcatArray(Array value)
 {
     return(ArrayConvert.ConcatArray(value, string.Empty));
 }