Пример #1
0
 /**
  * Convert the provided 4 value struct tuple into an array of 4 elements and return
  * The generated array
  */
 public static T[] ToArray <T>(this ValueTuple <T, T, T, T> tuple)
     where T : struct
 {
     return(tuple.ToArray(new T[4], 0));
 }
Пример #2
0
		/**
         * Convert the provided 8 value struct tuple into an array of 8 elements and return
         * The generated array
         */
		public static T[] ToArray<T>(this ValueTuple<ValueTuple<T, T, T, T>, ValueTuple<T, T, T, T>> tuple)
			where T : struct {
			return tuple.ToArray(new T[8], 0);
		}