probably missing something obvious but how can I t...
# dotnet
m
probably missing something obvious but how can I take an array in a stack config file and trun it into a C# array?
c
I was importing it as a JsonElement then iterate over that
m
Set the array from the command line:
Copy code
pulumi config set --path names[0] a
pulumi config set --path names[1] b
pulumi config set --path names[2] c
Access from C# Pulumi program:
Copy code
var config = new Config();
var names = config.RequireObject<string[]>("names");
m
Thanks, that's all working now