Hello, I am trying to get an item out of an InputL...
# general
s
Hello, I am trying to get an item out of an InputList construct inside an Apply block (in C#). What's the proper incantation to make this work? InputList only has Add and Concat and I can't figure out what kind of structure it is to access the resource ID inside.
l
It looks like
InputList
is enumerable as-is. So you'd iterate over it directly, and it contains Input-wrapped objects. You can decide if you need to apply then (hopefully you won't need to, you can just pass the values directly to other constructors).
e
It's also an
Input<ImmutableArray<T>>
so you can cast it to an
Output<ImmutableArray<T>>
then apply on that to get the entire immutable array object.