예제 #1
0
 internal ValueEnumerator(ref ValueList <T> list)
 {
     _array = list._array;
     _count = list._count;
     index  = -1;
 }
예제 #2
0
 /// <summary>
 /// Concatenates all the elements of a string list, using the specified separator between each element.
 /// </summary>
 public static string Join(this ValueList <string> values, string separator)
 {
     values.GetArraySegment(out var array, out var count);
     return(string.Join(separator, array, 0, count));
 }