public bool HasKey(string key, Type type) { return(dictionary.ContainsKey(type) && dictionary[type].ContainsKey(key)); }