Hey I’ve been working with Dictionarys a lot recently. This means that you’re assuming the key you’re wanting to use is already stored inside the dictionary. For example if you just create a dictionary like…
Dictionary<int, string> stringDictionary = new Dictionary<int, string>();
It will cause an error stating “The given key was not present in the dictionary” because this key never existed in the first place inside the dictionary. It would be a different story if we already assigned index “0” to something else cause then we could say index 0 now equals to “Hello!”.
But I’m sure even if Brian comes in here he’s going to need to see your code…