Exemple #1
0
 // --------------------------------------------------------------------------------
 /// <summary>
 /// Concatenates a specified separator String between each element of a specified 
 /// String array, yielding a single concatenated string. Parameters specify the 
 /// first array element and number of elements to use.
 /// </summary>
 /// <param name="separator">Separator string</param>
 /// <param name="value">String vlues to join</param>
 /// <param name="startIndex">Index of first element</param>
 /// <param name="count">Number of elements to join</param>
 /// <returns>Joined value</returns>
 // --------------------------------------------------------------------------------
 public static DBString Join(DBString separator, DBString [] value, int startIndex, int count)
 {
     String [] elements = new String [value.GetLength (0)];
       int index = 0;
       foreach (DBString element in value)
       {
     elements.SetValue (element, index ++);
       }
       return String.Join (separator.m_Value, elements, startIndex, count);
 }