Show / Hide Table of Contents

Class XmlDictionaryEntry

A key-value string pair for XmlDictionary.

Inheritance
Object
XmlDictionaryEntry
Implements
ICloneable<XmlDictionaryEntry>
Namespace: NanoByte.Common.Collections
Assembly: NanoByte.Common.dll
Syntax
public sealed class XmlDictionaryEntry : Object, ICloneable<XmlDictionaryEntry>

Constructors

XmlDictionaryEntry()

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

Declaration
public XmlDictionaryEntry()

XmlDictionaryEntry(String, String)

Creates a new entry for XmlDictionary.

Declaration
public XmlDictionaryEntry(string key, string value)
Parameters
Type Name Description
String key

The unique text key.

String value

The text value.

Properties

Key

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

Declaration
public string Key { get; set; }
Property Value
Type Description
String
Exceptions
Type Condition
InvalidOperationException

The new key value already exists in the NanoByte.Common.Collections.XmlDictionaryEntry.Parent dictionary.

Value

The text value.

Declaration
public string Value { get; set; }
Property Value
Type Description
String

Methods

Clone()

Creates a plain copy of this entry.

Declaration
public XmlDictionaryEntry Clone()
Returns
Type Description
XmlDictionaryEntry

The cloned entry.

Equals(XmlDictionaryEntry)

Declaration
public bool Equals(XmlDictionaryEntry other)
Parameters
Type Name Description
XmlDictionaryEntry other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

ToString()

Declaration
public override string ToString()
Returns
Type Description
String

Operators

Equality(XmlDictionaryEntry, XmlDictionaryEntry)

Declaration
public static bool operator ==(XmlDictionaryEntry left, XmlDictionaryEntry right)
Parameters
Type Name Description
XmlDictionaryEntry left
XmlDictionaryEntry right
Returns
Type Description
Boolean

Inequality(XmlDictionaryEntry, XmlDictionaryEntry)

Declaration
public static bool operator !=(XmlDictionaryEntry left, XmlDictionaryEntry right)
Parameters
Type Name Description
XmlDictionaryEntry left
XmlDictionaryEntry right
Returns
Type Description
Boolean

Implements

ICloneable<T>

Extension Methods

UpdateUtils.To<TIn, TOut>(TIn, Func<TIn, TOut>)
JsonStorage.SaveJson<T>(T, Stream)
JsonStorage.SaveJson<T>(T, String)
JsonStorage.ToJsonString<T>(T)
JsonStorage.ReparseAsJson<T>(Object)
JsonStorage.ReparseAsJson<T>(Object, T)
XmlStorage.SaveXml(Object, Stream, String)
XmlStorage.SaveXml<T>(T, String, String)
XmlStorage.ToXmlString(Object, String)
ConversionUtils.ConvertToString<TType>(TType)
In This Article
Back to top Copyright Bastian Eicher