C#C
C#11mo ago
merlo17

Need help with a CS1061 Error that is making no sense

The exact error is this:
CS1061: 'Dictionary<string, OwnedAircraft>' does not contain a definition for 'ATK' and no accessible extension method 'ATK' accepting a first argument of 'Dictionary<string, OwnedAircraft>' could be found (are you missing a using directive or assembly reference?)

However the Dictionary does have a definition for 'ATK'. And when I follow the code back through all the references, it is calling to the dictionary correctly. So I don't know what's wrong.

The first two screenshots are in EventHandler.cs, the third in UserData.cs
image.png
image.png
image.png
Was this page helpful?