Show / Hide Table of Contents

Class StringDictionary

Serializable dictionary. This class works as a regular dictionary. The only restriction is that the string is a value type

Inheritance
Object
Dictionary<String, String>
StringDictionary
Implements
IDictionary<String, String>
ICollection<KeyValuePair<String, String>>
IDictionary
ICollection
IReadOnlyDictionary<String, String>
IReadOnlyCollection<KeyValuePair<String, String>>
IEnumerable<KeyValuePair<String, String>>
IEnumerable
ISerializable
IDeserializationCallback
Inherited Members
Dictionary<String, String>.Add(String, String)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.Add(System.Collections.Generic.KeyValuePair<System.String, System.String>)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.Contains(System.Collections.Generic.KeyValuePair<System.String, System.String>)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.Remove(System.Collections.Generic.KeyValuePair<System.String, System.String>)
Dictionary<String, String>.Clear()
Dictionary<String, String>.ContainsKey(String)
Dictionary<String, String>.ContainsValue(String)
Dictionary<String, String>.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>>.GetEnumerator()
Dictionary<String, String>.GetObjectData(SerializationInfo, StreamingContext)
Dictionary<String, String>.OnDeserialization(Object)
Dictionary<String, String>.Remove(String)
Dictionary<String, String>.TryGetValue(String, String)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, System.String>[], System.Int32)
Dictionary<String, String>.ICollection.CopyTo(Array, Int32)
Dictionary<String, String>.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
Dictionary<String, String>.IDictionary.Add(Object, Object)
Dictionary<String, String>.IDictionary.Contains(Object)
Dictionary<String, String>.IDictionary.GetEnumerator()
Dictionary<String, String>.IDictionary.Remove(Object)
Dictionary<String, String>.Comparer
Dictionary<String, String>.Count
Dictionary<String, String>.Keys
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IDictionary<System.String, System.String>.Keys
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.String>.Keys
Dictionary<String, String>.Values
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IDictionary<System.String, System.String>.Values
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.String>.Values
Dictionary<String, String>.Item[String]
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.IsReadOnly
Dictionary<String, String>.ICollection.IsSynchronized
Dictionary<String, String>.ICollection.SyncRoot
Dictionary<String, String>.IDictionary.IsFixedSize
Dictionary<String, String>.IDictionary.IsReadOnly
Dictionary<String, String>.IDictionary.Keys
Dictionary<String, String>.IDictionary.Values
Dictionary<String, String>.IDictionary.Item[Object]
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Services
Assembly: SoCore.dll
Syntax
public class StringDictionary : Dictionary<string, string>, IDictionary<string, string>, ICollection<KeyValuePair<string, string>>, IDictionary, ICollection, IReadOnlyDictionary<string, string>, IReadOnlyCollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, IEnumerable, ISerializable, IDeserializationCallback
Remarks

Serializes a dictionary to and from XML. Used as part of the data-carriers.

Examples
 StringDictionary dict = new StringDictionary();
 dict["foo"] = "bar";
 dict["baz"] = "quux";
 dict.WriteXml( xmlWriter );

results in XML that looks like this:

  <StringDictionary>
     <StringKeyValuePair>
        <Key>foo</Key><Value>bar</Value>
     </StringKeyValuePair>
     <StringKeyValuePair>
        <Key>baz</Key><Value>quux</Value>
     </StringKeyValuePair>
  </StringDictionary>

Constructors

StringDictionary()

Default constructor

Declaration
public StringDictionary()

StringDictionary(Dictionary<String, String>)

Make a copy of a generic string dictionary

Declaration
public StringDictionary(Dictionary<string, string> source)
Parameters
Type Name Description
Dictionary<String, String> source

StringDictionary(IEnumerable<String>, IEnumerable<String>)

Make a string dictionary from two string arrays

Declaration
public StringDictionary(IEnumerable<string> keys, IEnumerable<string> values)
Parameters
Type Name Description
IEnumerable<String> keys
IEnumerable<String> values

StringDictionary(Int32)

Declaration
public StringDictionary(int capacity)
Parameters
Type Name Description
Int32 capacity

StringDictionary(SerializationInfo, StreamingContext)

Initializes a new instance with serialized data.

Declaration
public StringDictionary(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

Contains the information to de-serialize

StreamingContext context

Context

Methods

FromDictionary(Dictionary<String, String>)

Declaration
public static StringDictionary FromDictionary(Dictionary<string, string> input)
Parameters
Type Name Description
Dictionary<String, String> input
Returns
Type Description
StringDictionary

ToString(String)

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
String prefix
Returns
Type Description
String

Implements

System.Collections.Generic.IDictionary<TKey,TValue>
System.Collections.Generic.ICollection<T>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback

Extension Methods

EnumUtil.MapEnums<From, To>(From)
IEnumerableExtensions.ForEach<T>(System.Collections.Generic.IEnumerable<T>, System.Action<T>)
IEnumerableExtensions.ContainsAny<T>(System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IEnumerable<T>)
IEnumerableExtensions.Batch<T>(System.Collections.Generic.IEnumerable<T>, System.Int32)
IEnumerableExtensions.IndexOf<T>(System.Collections.Generic.IEnumerable<T>, T, System.Int32)
IEnumerableExtensions.IndexOf<T>(System.Collections.Generic.IEnumerable<T>, System.Func<T, System.Boolean>, System.Int32)
IEnumerableExtensions.Permute<T>(System.Collections.Generic.IEnumerable<T>, System.Int32)
IEnumerableExtensions.PermissiveToDictionary<T, K, V>(System.Collections.Generic.IEnumerable<T>, System.Func<T, K>, System.Func<T, V>)
IEnumerableExtensions.PermissiveToDictionary<T, K, V>(System.Collections.Generic.IEnumerable<T>, System.Func<T, K>, System.Func<T, V>, System.Collections.Generic.IEqualityComparer<K>)
IEnumerableExtensions.GetDifferentCombinations<T>(System.Collections.Generic.IEnumerable<T>, System.Int32)
CollectionOps.AddRange<T, S>(Dictionary<T, S>, Dictionary<T, S>)
CollectionOps.AtLeastOne<T>(IEnumerable<T>)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
stringDictionaryExt.TostringDictionary(Dictionary<String, String>)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top