I have the following line which is causing an exception as it failed to find the item.
InventorySlot slot = slots.Find(c => c.itemResourceID == itemToAddResourceID);
I want to replace it with a tryFind but it’s not recognised!
I have the following line which is causing an exception as it failed to find the item.
InventorySlot slot = slots.Find(c => c.itemResourceID == itemToAddResourceID);
I want to replace it with a tryFind but it’s not recognised!
my bad. looks like tryFind is only in F# not C#