public static ValueGroup AsGroup(this IEnumerable <decimal> sequence) { var source = sequence.ToArray(); ValueBase[] values = new ValueBase[source.Length]; for (int i = 0; i < source.Length; i++) { values[i] = source[i]; } return(new ValueGroup(values)); }
public static ValueSequence AsValues(this IEnumerable <int> sequence) { var source = sequence.ToArray(); ValueBase[] values = new ValueBase[source.Length]; for (int i = 0; i < source.Length; i++) { values[i] = source[i]; } return(new ValueSequence(values)); }
public static ValueGroup AsGroup(this IEnumerable <bool> group) { var source = group.ToArray(); ValueBase[] values = new ValueBase[source.Length]; for (int i = 0; i < source.Length; i++) { values[i] = source[i]; } return(new ValueGroup(values)); }