I just saw odd syntax after decompiling a dictionary in .net core 3.1 and I cant find any information about it
What does the !
mean in this context ? if (i >= 0) return _entries![i].value;
Here is the full code for the indexer for more context
public TValue this[TKey key]
{
get
{
int i = FindEntry(key);
if (i >= 0) return _entries![i].value;
ThrowHelper.ThrowKeyNotFoundException(key);
return default;
}
set
{
bool modified = TryInsert(key, value, InsertionBehavior.OverwriteExisting);
Debug.Assert(modified);
}
}
I would appreciate any information / link about this