Wow! Thanks a ton Tony! It seems I am missing a lot of stuff here
I’m using my lisp brain here so I’m probably going about this totally wrong. What I need to do is store an association list like (( 2000 , 724.00)) where 2000 would be my lookup key and 724.00 is the value. I addition to storing my data, I was thinking that I should also store the Xdata type as well, for example ((1070 , 2000 , 1040 , 724.00) (1070 , 2001 , 1071 , 9999)) since my value will be of different types. I probably don’t need to store the first Xdata type since my key will always be an Int16. I was hoping that by storing the Xdata type I wouldn’t have to guess at it later.
Instead of using the TypedValue struct I thought I would make a new struct “XdataStruct “ that would contain the four items and I would use the List <XdataStruct> collection to store it all.
I could then use List.Find (Predicate<T> match) to retrieve the value I need.
Assuming that I am doing this correctly, my concern is if my struct is too big. I have read that it should be kept at or under 16 bytes. By using 3 Int16s and an Object, I’m exceeding this. I could drop the first short though.
Am I going about this correctly?
Thanks