Show / Hide Table of Contents

Class StringBoolDictionary

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

Inheritance
object
Dictionary<string, bool>
StringBoolDictionary
Implements
IDictionary<string, bool>
ICollection<KeyValuePair<string, bool>>
IDictionary
ICollection
IReadOnlyDictionary<string, bool>
IReadOnlyCollection<KeyValuePair<string, bool>>
IEnumerable<KeyValuePair<string, bool>>
IEnumerable
ISerializable
IDeserializationCallback
Inherited Members
Dictionary<string, bool>.Add(string, bool)
Dictionary<string, bool>.Clear()
Dictionary<string, bool>.ContainsKey(string)
Dictionary<string, bool>.ContainsValue(bool)
Dictionary<string, bool>.GetEnumerator()
Dictionary<string, bool>.GetObjectData(SerializationInfo, StreamingContext)
Dictionary<string, bool>.OnDeserialization(object)
Dictionary<string, bool>.Remove(string)
Dictionary<string, bool>.Remove(string, out bool)
Dictionary<string, bool>.TryGetValue(string, out bool)
Dictionary<string, bool>.TryAdd(string, bool)
Dictionary<string, bool>.EnsureCapacity(int)
Dictionary<string, bool>.TrimExcess()
Dictionary<string, bool>.TrimExcess(int)
Dictionary<string, bool>.Comparer
Dictionary<string, bool>.Count
Dictionary<string, bool>.Keys
Dictionary<string, bool>.Values
Dictionary<string, bool>.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 = "StringBoolDictionary", ItemName = "StringBoolKeyValuePair", KeyName = "Key", ValueName = "Value", Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.7.0.0")]
public class StringBoolDictionary : Dictionary<string, bool>, IDictionary<string, bool>, ICollection<KeyValuePair<string, bool>>, IDictionary, ICollection, IReadOnlyDictionary<string, bool>, IReadOnlyCollection<KeyValuePair<string, bool>>, IEnumerable<KeyValuePair<string, bool>>, 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

StringBoolDictionary()

Default constructor

Declaration
public StringBoolDictionary()
Remarks

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

StringBoolDictionary(Dictionary<string, bool>)

Make a copy of a generic string dictionary

Declaration
public StringBoolDictionary(Dictionary<string, bool> source)
Parameters
Type Name Description
Dictionary<string, bool> source
Remarks

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

StringBoolDictionary(IEnumerable<string>, IEnumerable<bool>)

Make a string dictionary from two string arrays

Declaration
public StringBoolDictionary(IEnumerable<string> keys, IEnumerable<bool> values)
Parameters
Type Name Description
IEnumerable<string> keys
IEnumerable<bool> values
Remarks

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

StringBoolDictionary(int)

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

Declaration
public StringBoolDictionary(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>

StringBoolDictionary(SerializationInfo, StreamingContext)

Initializes a new instance with serialized data.

Declaration
public StringBoolDictionary(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, bool>)

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

Declaration
public static StringBoolDictionary FromDictionary(Dictionary<string, bool> input)
Parameters
Type Name Description
Dictionary<string, bool> input
Returns
Type Description
StringBoolDictionary
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)
stringBoolDictionaryExt.ToStringBoolDictionary(Dictionary<string, bool>)
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