Read Output Parameter Name

I’m trying to figure out the best way to read the name of an output so that I can then use it as text to input it into the next component. I could have sworn I ran across a component that grabbed these names before but can’t find it.

The ideal situation would be to use the content of that list like normal, and then grab the name to use as input text on the next component (where I am labeling a legend based off of the data in the aforementioned list). This would then work for each output so that I could use the output data and output name in tandem. See image below.

var sources = Component.Params.Input[0].Sources;
foreach(Grasshopper.Kernel.IGH_Param source in sources)
  Print(source.Name); (13.3 KB)