53 public void Add(
string name,
int id)
73 int num =
int.MaxValue;
80 throw new Exception(
"IdDictionary cannot be created before Count field is initialized. Move to bottom of static class");
readonly Dictionary< string, int > _nameToId
IEnumerable< string > Names
Dictionary< int, string > _idToName
bool ContainsName(string name)
bool TryGetId(string name, out int id)
bool TryGetName(int id, out string name)
static IdDictionary Create< IdClass, IdType >()
static IdDictionary Create(Type idClass, Type idType)
void Add(string name, int id)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ContainsKey(TKey key)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static int ToInt32(object? value)