Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Content.NamedDictionary< TKey, TValue > Class Template Reference

A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that can be encoded both as JSON or XML. More...

Inheritance diagram for Waher.Content.NamedDictionary< TKey, TValue >:

Public Member Functions

 NamedDictionary ()
 A Named dictionary is a dictionary, with a local name and a namespace. More...
 
 NamedDictionary (string LocalName, string Namespace)
 A Named dictionary is a dictionary, with a local name and a namespace. More...
 
 NamedDictionary (IDictionary< TKey, TValue > Dictionary)
 A Named dictionary is a dictionary, with a local name and a namespace. More...
 
 NamedDictionary (IEqualityComparer< TKey > Comparer)
 A Named dictionary is a dictionary, with a local name and a namespace. More...
 
 NamedDictionary (int Capacity)
 A Named dictionary is a dictionary, with a local name and a namespace. More...
 
 NamedDictionary (IDictionary< TKey, TValue > Dictionary, IEqualityComparer< TKey > Comparer)
 A Named dictionary is a dictionary, with a local name and a namespace. More...
 
 NamedDictionary (int Capacity, IEqualityComparer< TKey > Comparer)
 A Named dictionary is a dictionary, with a local name and a namespace. More...
 

Static Public Member Functions

static NamedDictionary< string, object > ToNamedDictionary (IEnumerable< KeyValuePair< string, IElement > > Dictionary)
 Creates a Named Dictionary from a script object ex-nihilo More...
 

Properties

string LocalName [get, set]
 Local Name of dictionary. More...
 
string Namespace [get, set]
 Namespace of dictionary. More...
 

Detailed Description

A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that can be encoded both as JSON or XML.

Template Parameters
TKeyKey Type
TValueValue Type

Definition at line 12 of file NamedDictionary.cs.

Constructor & Destructor Documentation

◆ NamedDictionary() [1/7]

A Named dictionary is a dictionary, with a local name and a namespace.

Definition at line 17 of file NamedDictionary.cs.

◆ NamedDictionary() [2/7]

Waher.Content.NamedDictionary< TKey, TValue >.NamedDictionary ( string  LocalName,
string  Namespace 
)

A Named dictionary is a dictionary, with a local name and a namespace.

Parameters
LocalNameLocal Name
NamespaceNamespace

Definition at line 27 of file NamedDictionary.cs.

◆ NamedDictionary() [3/7]

Waher.Content.NamedDictionary< TKey, TValue >.NamedDictionary ( IDictionary< TKey, TValue >  Dictionary)

A Named dictionary is a dictionary, with a local name and a namespace.

Parameters
DictionaryDictionary with items.

Definition at line 38 of file NamedDictionary.cs.

◆ NamedDictionary() [4/7]

Waher.Content.NamedDictionary< TKey, TValue >.NamedDictionary ( IEqualityComparer< TKey >  Comparer)

A Named dictionary is a dictionary, with a local name and a namespace.

Parameters
ComparerComparer

Definition at line 47 of file NamedDictionary.cs.

◆ NamedDictionary() [5/7]

Waher.Content.NamedDictionary< TKey, TValue >.NamedDictionary ( int  Capacity)

A Named dictionary is a dictionary, with a local name and a namespace.

Parameters
CapacityInitial Capacity.

Definition at line 56 of file NamedDictionary.cs.

◆ NamedDictionary() [6/7]

Waher.Content.NamedDictionary< TKey, TValue >.NamedDictionary ( IDictionary< TKey, TValue >  Dictionary,
IEqualityComparer< TKey >  Comparer 
)

A Named dictionary is a dictionary, with a local name and a namespace.

Parameters
DictionaryDictionary with items.
ComparerComparer

Definition at line 66 of file NamedDictionary.cs.

◆ NamedDictionary() [7/7]

Waher.Content.NamedDictionary< TKey, TValue >.NamedDictionary ( int  Capacity,
IEqualityComparer< TKey >  Comparer 
)

A Named dictionary is a dictionary, with a local name and a namespace.

Parameters
CapacityInitial Capacity.
ComparerComparer

Definition at line 76 of file NamedDictionary.cs.

Member Function Documentation

◆ ToNamedDictionary()

static NamedDictionary< string, object > Waher.Content.NamedDictionary< TKey, TValue >.ToNamedDictionary ( IEnumerable< KeyValuePair< string, IElement > >  Dictionary)
static

Creates a Named Dictionary from a script object ex-nihilo

Parameters
DictionaryScript object.

Definition at line 85 of file NamedDictionary.cs.

Property Documentation

◆ LocalName

string Waher.Content.NamedDictionary< TKey, TValue >.LocalName
getset

Local Name of dictionary.

Definition at line 115 of file NamedDictionary.cs.

◆ Namespace

string Waher.Content.NamedDictionary< TKey, TValue >.Namespace
getset

Namespace of dictionary.

Definition at line 120 of file NamedDictionary.cs.


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