Hello,
I’m working with a few large arrays that contain structures.
Is there an easy way to find an index position based on a structure field/property? I was thinking about indexof but I know how to use it on a normal array but not on an arrays that contain a struct.
Something like: idx = arrayStruct.idField.IndexOf(1234)
The arrays are rather large and I currently iterate over them for every ‘lookup’ but I was wondering if there was an easier way. Plan B is a dictionary on the side as some sort of index but I’m hoping there’s a better way.