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)
Dictionary<string, string>.Clear()
Dictionary<string, string>.ContainsKey(string)
Dictionary<string, string>.ContainsValue(string)
Dictionary<string, string>.GetEnumerator()
Dictionary<string, string>.GetObjectData(SerializationInfo, StreamingContext)
Dictionary<string, string>.OnDeserialization(object)
Dictionary<string, string>.Remove(string)
Dictionary<string, string>.Remove(string, out string)
Dictionary<string, string>.TryGetValue(string, out string)
Dictionary<string, string>.TryAdd(string, string)
Dictionary<string, string>.EnsureCapacity(int)
Dictionary<string, string>.TrimExcess()
Dictionary<string, string>.TrimExcess(int)
Dictionary<string, string>.Comparer
Dictionary<string, string>.Count
Dictionary<string, string>.Keys
Dictionary<string, string>.Values
Dictionary<string, string>.this[string]
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
[CollectionDataContract(Name = "StringDictionary", ItemName = "StringKeyValuePair", KeyName = "Key", ValueName = "Value", Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.6.0.0")]
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()
Remarks

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

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
Remarks

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

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
Remarks

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

StringDictionary(int)

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

Declaration
public StringDictionary(int capacity)
Parameters
Type Name Description
int capacity
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>

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

Remarks

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

Methods

FromDictionary(Dictionary<string, string>)

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

Declaration
public static StringDictionary FromDictionary(Dictionary<string, string> input)
Parameters
Type Name Description
Dictionary<string, string> input
Returns
Type Description
StringDictionary
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>

ToString(string)

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

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix
Returns
Type Description
string
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>

Implements

IDictionary<TKey, TValue>
ICollection<T>
IDictionary
ICollection
IReadOnlyDictionary<TKey, TValue>
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable
ISerializable
IDeserializationCallback

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
stringDictionaryExt.TostringDictionary(Dictionary<string, string>)
CollectionOps.AddRange<T, S>(Dictionary<T, S>, Dictionary<T, S>)
IEnumerableExtensions.ToDictionaryPermissive<TSource, TKey>(ICollection<TSource>, Func<TSource, TKey>)
IEnumerableExtensions.ToDictionaryPermissive<TSource, TKey>(ICollection<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>)
IEnumerableExtensions.ToDictionaryPermissive<TSource, TKey, TElement>(ICollection<TSource>, Func<TSource, TKey>, Func<TSource, TElement>)
IEnumerableExtensions.ToDictionaryPermissive<TSource, TKey, TElement>(ICollection<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>)
IEnumerableExtensions.Batch<T>(IEnumerable<T>, int)
IEnumerableExtensions.ContainsAny<T>(IEnumerable<T>, IEnumerable<T>)
IEnumerableExtensions.GetDifferentCombinations<T>(IEnumerable<T>, int)
IEnumerableExtensions.IndexOf<T>(IEnumerable<T>, T, int)
IEnumerableExtensions.IndexOf<T>(IEnumerable<T>, Func<T, bool>, int)
IEnumerableExtensions.IsNullOrEmpty<T>(IEnumerable<T>)
IEnumerableExtensions.PermissiveToDictionary<T, K, V>(IEnumerable<T>, Func<T, K>, Func<T, V>)
IEnumerableExtensions.PermissiveToDictionary<T, K, V>(IEnumerable<T>, Func<T, K>, Func<T, V>, IEqualityComparer<K>)
IEnumerableExtensions.Permute<T>(IEnumerable<T>, int)
IEnumerableExtensions.ToDictionaryPermissive<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)
IEnumerableExtensions.ToDictionaryPermissive<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>)
IEnumerableExtensions.ToDictionaryPermissive<TSource, TKey, TElement>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>)
IEnumerableExtensions.ToDictionaryPermissive<TSource, TKey, TElement>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>)
CollectionOps.AtLeastOne<T>(IEnumerable<T>)
LinqExtensions.ToHashSet<TSource>(IEnumerable<TSource>)
LinqExtensions.ToHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top