Show / Hide Table of Contents

Class StringObjectDictionary

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

Inheritance
Object
Dictionary<String, Object>
StringObjectDictionary
Implements
IDictionary<String, Object>
ICollection<KeyValuePair<String, Object>>
IDictionary
ICollection
IReadOnlyDictionary<String, Object>
IReadOnlyCollection<KeyValuePair<String, Object>>
IEnumerable<KeyValuePair<String, Object>>
IEnumerable
ISerializable
IDeserializationCallback
Inherited Members
Dictionary<String, Object>.Add(String, Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Add(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Contains(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Remove(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
Dictionary<String, Object>.Clear()
Dictionary<String, Object>.ContainsKey(String)
Dictionary<String, Object>.ContainsValue(Object)
Dictionary<String, Object>.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.GetEnumerator()
Dictionary<String, Object>.GetObjectData(SerializationInfo, StreamingContext)
Dictionary<String, Object>.OnDeserialization(Object)
Dictionary<String, Object>.Remove(String)
Dictionary<String, Object>.TryGetValue(String, Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, System.Object>[], System.Int32)
Dictionary<String, Object>.ICollection.CopyTo(Array, Int32)
Dictionary<String, Object>.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
Dictionary<String, Object>.IDictionary.Add(Object, Object)
Dictionary<String, Object>.IDictionary.Contains(Object)
Dictionary<String, Object>.IDictionary.GetEnumerator()
Dictionary<String, Object>.IDictionary.Remove(Object)
Dictionary<String, Object>.Comparer
Dictionary<String, Object>.Count
Dictionary<String, Object>.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IDictionary<System.String, System.Object>.Keys
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>.Keys
Dictionary<String, Object>.Values
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IDictionary<System.String, System.Object>.Values
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>.Values
Dictionary<String, Object>.Item[String]
System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.IsReadOnly
Dictionary<String, Object>.ICollection.IsSynchronized
Dictionary<String, Object>.ICollection.SyncRoot
Dictionary<String, Object>.IDictionary.IsFixedSize
Dictionary<String, Object>.IDictionary.IsReadOnly
Dictionary<String, Object>.IDictionary.Keys
Dictionary<String, Object>.IDictionary.Values
Dictionary<String, Object>.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 StringObjectDictionary : Dictionary<string, object>, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IDictionary, ICollection, IReadOnlyDictionary<string, object>, IReadOnlyCollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, 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

StringObjectDictionary()

Default constructor

Declaration
public StringObjectDictionary()

StringObjectDictionary(Dictionary<String, Object>)

Make a copy of a generic string dictionary

Declaration
public StringObjectDictionary(Dictionary<string, object> source)
Parameters
Type Name Description
Dictionary<String, Object> source

StringObjectDictionary(IEnumerable<String>, IEnumerable<Object>)

Make a string dictionary from two string arrays

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

StringObjectDictionary(Int32)

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

StringObjectDictionary(SerializationInfo, StreamingContext)

Initializes a new instance with serialized data.

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

Contains the information to de-serialize

StreamingContext context

Context

Methods

FromDictionary(Dictionary<String, Object>)

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

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)
stringObjectDictionaryExt.ToStringObjectDictionary(Dictionary<String, Object>)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top