KS.Unity.ksISerializableDictionary Interface Reference

Extends the IDictionary interface with functions used by the dictionary property drawer to detect duplicate keys. More...

Inheritance diagram for KS.Unity.ksISerializableDictionary:
KS.Unity.ksSerializableDictionary< Key, Value >

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...
 

Detailed Description

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.

Member Function Documentation

◆ HasDuplicateKeys()

bool KS.Unity.ksISerializableDictionary.HasDuplicateKeys ( )

Checks if there are any duplicate keys.

Returns
True if there are any duplicate keys.

◆ HasNullKeys()

bool KS.Unity.ksISerializableDictionary.HasNullKeys ( )

Checks if there are any null keys.

Returns
True if there are any null keys.

◆ IsNullOrDuplicateKeyAt()

bool KS.Unity.ksISerializableDictionary.IsNullOrDuplicateKeyAt ( int  index)

Checks if the key at the index is null or a duplicate.

Parameters
indexIndex to check.
Returns
True if the key at the index is null or a duplicate.