[C#/Godot4] How to check if a dictionary has the specified key?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BitterTheChicken

In Godot 3 i used to do this:

if (ResourceList.Contains(resourceName)){
	do stuff...

but in Godot 4 it requires a System.Collections.Generic.KeyValuePair which i don’t understand. Can someone basically explain it to me?

:bust_in_silhouette: Reply From: BitterTheChicken

i am so dumb. it was ContainsKey instead of Contains.