Try utilise the array index to store as a named ref.
Alternatively if there’s too much looping/iteration and you *really *want to use a variable in your struct as a key to find(); you can create a dictionary.
Initialise the new Dictionary variable first with **key **: **struct **
where **key = **Name
and **struct **= YourStructure
I would create a function mapArrayOfStructToDictionary(struct, StructVarAsKey).
You need to ensure every value is unique else the dictionary item will be removed. Now decide if a data table is better where you enforce unique keys