Extends the IDictionary interface with functions used by the dictionary property drawer to detect duplicate keys. More...
Public Member Functions | |
bool | IsNullOrDuplicateKeyAt (int index) |
Checks if the key at the index is null or a duplicate. More... | |
bool | HasDuplicateKeys () |
Checks if there are any duplicate keys. More... | |
bool | HasNullKeys () |
Checks if there are any null keys. More... | |
Extends the IDictionary interface with functions used by the dictionary property drawer to detect duplicate keys.
Because the contents of the dictionary are serialized in a list, it is possible for the list to contain duplicate keys.
bool KS.Unity.ksISerializableDictionary.HasDuplicateKeys | ( | ) |
Checks if there are any duplicate keys.
bool KS.Unity.ksISerializableDictionary.HasNullKeys | ( | ) |
Checks if there are any null keys.
bool KS.Unity.ksISerializableDictionary.IsNullOrDuplicateKeyAt | ( | int | index | ) |
Checks if the key at the index is null or a duplicate.
index | Index to check. |