I was able to connect the ValueList to the first input of the C# component and get the ListItem, but I can’t figure out how to get the key/value combination of the ValueList from here.
Please let me know if there is any method or reference.
var input = Component.Params.Input;
vallist = input.Sources.Attributes.DocObject as Grasshopper.Kernel.Special.GH_ValueList;
A = vallist.ListItems.Value;
getValueListContents.gh (3.6 KB)