NanoByte.Common  2.7.0
NanoByte.Common.Collections.XmlDictionaryEntry Class Reference

A key-value string pair for XmlDictionary. More...

Inheritance diagram for NanoByte.Common.Collections.XmlDictionaryEntry:
NanoByte.Common.ICloneable< XmlDictionaryEntry >

Public Member Functions

 XmlDictionaryEntry ()
 Base-constructor for XML serialization. Do not call manually! More...
 
 XmlDictionaryEntry (string key, string value)
 Creates a new entry for XmlDictionary. More...
 
override string ToString ()
 
bool Equals (XmlDictionaryEntry? other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
XmlDictionaryEntry Clone ()
 Creates a plain copy of this entry. More...
 
- Public Member Functions inherited from NanoByte.Common.ICloneable< XmlDictionaryEntry >
Clone ()
 Creates a new clone of this instance. More...
 

Static Public Member Functions

static bool operator== (XmlDictionaryEntry left, XmlDictionaryEntry right)
 
static bool operator!= (XmlDictionaryEntry left, XmlDictionaryEntry right)
 

Package Attributes

XmlDictionaryParent
 The collection that owns this entry - set to enable automatic duplicate detection! More...
 

Properties

string?? Key [get, set]
 The unique text key. Warning: If this is changed the XmlDictionary must be rebuilt in order to update its internal hash table. More...
 
string Value = "" [get, set]
 The text value. More...
 

Detailed Description

A key-value string pair for XmlDictionary.

Constructor & Destructor Documentation

◆ XmlDictionaryEntry() [1/2]

NanoByte.Common.Collections.XmlDictionaryEntry.XmlDictionaryEntry ( )
inline

Base-constructor for XML serialization. Do not call manually!

◆ XmlDictionaryEntry() [2/2]

NanoByte.Common.Collections.XmlDictionaryEntry.XmlDictionaryEntry ( string  key,
string  value 
)
inline

Creates a new entry for XmlDictionary.

Parameters
keyThe unique text key.
valueThe text value.

Member Function Documentation

◆ Clone()

XmlDictionaryEntry NanoByte.Common.Collections.XmlDictionaryEntry.Clone ( )

Creates a plain copy of this entry.

Returns
The cloned entry.

Member Data Documentation

◆ Parent

XmlDictionary? NanoByte.Common.Collections.XmlDictionaryEntry.Parent
package

The collection that owns this entry - set to enable automatic duplicate detection!

Property Documentation

◆ Key

string?? NanoByte.Common.Collections.XmlDictionaryEntry.Key
getset

The unique text key. Warning: If this is changed the XmlDictionary must be rebuilt in order to update its internal hash table.

Exceptions
InvalidOperationExceptionThe new key value already exists in the Parent dictionary.

◆ Value

string NanoByte.Common.Collections.XmlDictionaryEntry.Value = ""
getset

The text value.


The documentation for this class was generated from the following file: