How to flatten input parameters in C#

The data mapping of a components parameter can be changed similar to how parameters can be set to optional: A property DataMapping exists which takes values of Type GH_DataMapping.


// Flatten all inputs
pManager[in_Elem2D].DataMapping = GH_DataMapping.Flatten;
pManager[in_Elem1D].DataMapping = GH_DataMapping.Flatten;
pManager[in_Supports].DataMapping = GH_DataMapping.Flatten;

This code is usually placed in the RegisterInputParams() method