Class CustomAttributeDictionary
Represents a collection of custom attribute values.
Inheritance
System.Object
System.Collections.Generic.Dictionary<System.Int32, System.String>
CustomAttributeDictionary
Implements
System.Collections.Generic.IDictionary<System.Int32, System.String>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.Generic.IReadOnlyDictionary<System.Int32, System.String>
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
System.Collections.Generic.Dictionary<System.Int32, System.String>.Add(System.Int32, System.String)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.Add(System.Collections.Generic.KeyValuePair<System.Int32, System.String>)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.Contains(System.Collections.Generic.KeyValuePair<System.Int32, System.String>)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.Remove(System.Collections.Generic.KeyValuePair<System.Int32, System.String>)
System.Collections.Generic.Dictionary<System.Int32, System.String>.Clear()
System.Collections.Generic.Dictionary<System.Int32, System.String>.ContainsKey(System.Int32)
System.Collections.Generic.Dictionary<System.Int32, System.String>.ContainsValue(System.String)
System.Collections.Generic.Dictionary<System.Int32, System.String>.GetEnumerator()
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.GetEnumerator()
System.Collections.Generic.Dictionary<System.Int32, System.String>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.Dictionary<System.Int32, System.String>.OnDeserialization(System.Object)
System.Collections.Generic.Dictionary<System.Int32, System.String>.Remove(System.Int32)
System.Collections.Generic.Dictionary<System.Int32, System.String>.TryGetValue(System.Int32, System.String)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.CopyTo(System.Collections.Generic.KeyValuePair<System.Int32, System.String>[], System.Int32)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.Add(System.Object, System.Object)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.Contains(System.Object)
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.GetEnumerator()
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.Remove(System.Object)
System.Collections.Generic.Dictionary<System.Int32, System.String>.Comparer
System.Collections.Generic.Dictionary<System.Int32, System.String>.Count
System.Collections.Generic.Dictionary<System.Int32, System.String>.Keys
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IDictionary<System.Int32, System.String>.Keys
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IReadOnlyDictionary<System.Int32, System.String>.Keys
System.Collections.Generic.Dictionary<System.Int32, System.String>.Values
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IDictionary<System.Int32, System.String>.Values
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IReadOnlyDictionary<System.Int32, System.String>.Values
System.Collections.Generic.Dictionary<System.Int32, System.String>.Item[System.Int32]
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.IsReadOnly
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.IsFixedSize
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.IsReadOnly
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.Keys
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.Values
System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.Item[System.Object]
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class CustomAttributeDictionary : Dictionary<int, string>, IDictionary<int, string>, ICollection<KeyValuePair<int, string>>, IDictionary, ICollection, IReadOnlyDictionary<int, string>, IReadOnlyCollection<KeyValuePair<int, string>>, IEnumerable<KeyValuePair<int, string>>, IEnumerable, ISerializable, IDeserializationCallback
Constructors
CustomAttributeDictionary()
Initializes an empty instance.
Declaration
public CustomAttributeDictionary()
Methods
IsEquivalent(CustomAttributeDictionary)
Compares items in this dictionary with items in the provided dictionary
using custom attribute specific comparison rules. For example, if attribute
does not exist in the dictionary, it is assumed that its value is Null. If
attribute is not provided in the other
dictionary, it is
assumed that its value is not changed.
Declaration
public bool IsEquivalent(CustomAttributeDictionary other)
Parameters
Returns
Type |
Description |
System.Boolean |
True if dictionaries are equivalent. Otherwise false.
|
Validate(ICollection<CustomAttributeType>, Boolean)
Checks if all items belongs to the provided collection of the allowed
attributes and satisfy their type requirements.
Declaration
public string Validate(ICollection<CustomAttributeType> attributeTypes, bool ensureRequired)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<CustomAttributeType> |
attributeTypes |
Collection of attribute types defining the attributes that are allowed
to be in this dictionary.
|
System.Boolean |
ensureRequired |
Flag indicating that all required attributes must be present in this dictionary.
|
Returns
Type |
Description |
System.String |
Message explaining the found errors or Null, if no errors are found.
|
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