public static void SetItem <T>(ref this(T, T, T, T) quad, int i, T value) { switch (i) { default: throw new System.ArgumentException(string.Format("Bad index: {0}", i)); case 0: quad.Item1 = value; break; case 1: quad.Item2 = value; break; case 2: quad.Item3 = value; break; case 3: quad.Item4 = value; break; } }
public static bool Set <T>(ref this(T[] items, int count) source, int index, T item)