/// <summary> /// <see cref="All{T}(Output{T}[])"/> for more details. /// </summary> public static Output <ImmutableArray <T> > All <T>(IEnumerable <Output <T> > outputs) => Output <T> .All(ImmutableArray.CreateRange(outputs.Select(o => (Input <T>)o)));
/// <summary> /// <see cref="All{T}(Input{T}[])"/> for more details. /// </summary> public static Output <ImmutableArray <T> > All <T>(IEnumerable <Input <T> > inputs) => Output <T> .All(ImmutableArray.CreateRange(inputs));
/// <summary> /// <see cref="All{T}(Input{T}[])"/> for more details. /// </summary> public static Output <ImmutableArray <T> > All <T>(ImmutableArray <Input <T> > inputs) => Output <T> .All(inputs);
/// <summary> /// Combines all the <see cref="Input{T}"/> values in <paramref name="inputs"/> /// into a single <see cref="Output{T}"/> with an <see cref="ImmutableArray{T}"/> /// containing all their underlying values. If any of the <see cref="Input{T}"/>s are not /// known, the final result will be not known. Similarly, if any of the <see /// cref="Input{T}"/>s are secrets, then the final result will be a secret. /// </summary> public static Output <ImmutableArray <T> > All <T>(params Input <T>[] inputs) => Output <T> .All(ImmutableArray.CreateRange(inputs));
public void Add(params Input <T>[] inputs) { // Make an Output from the values passed in, mix in with our own Output, and combine // both to produce the final array that we will now point at. _outputValue = Output.Concat(_outputValue, Output.All(inputs)); }