Class CompositeDictionary
Namespace: DocFxToTemplate.Models.DocFx
Assembly: DocFxToTemplate.dll
Source: src/DocFxToTemplate/Models/DocFx/CompositeDictionary.cs#L9
public class CompositeDictionary : IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
Inheritance:
object <-
CompositeDictionary
Inherited Members:
object.Equals(object, object), object.Equals(object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()
Implements:
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>, System.Collections.Generic.IDictionary<System.String,System.Object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Object>>, System.Collections.IEnumerable
Properties
this[string]
Gets or sets the element with the specified key.
public object this[string key] { get; set; }
Property value
object
The element with the specified key.
Count
Gets the number of elements contained in the System.Collections.Generic.ICollection%601.
public int Count { get; }
Property value
int
The number of elements contained in the
IsReadOnly
Gets a value indicating whether the System.Collections.Generic.ICollection%601 is read-only.
public bool IsReadOnly { get; }
Property value
bool
true if the
Keys
Gets an System.Collections.Generic.ICollection%601 containing the keys of the System.Collections.Generic.IDictionary%602.
public ICollection<string> Keys { get; }
Property value
ICollection<string>
An
Values
Gets an System.Collections.Generic.ICollection%601 containing the values in the System.Collections.Generic.IDictionary%602.
public ICollection<object> Values { get; }
Property value
ICollection<object>
An
Methods
Add(string, object)
Adds an element with the provided key and value to the System.Collections.Generic.IDictionary%602.
public void Add(string key, object value)
Parameters
key
string
The object to use as the key of the element to add.
value
object
The object to use as the value of the element to add.
Clear()
Removes all items from the System.Collections.Generic.ICollection%601.
public void Clear()
ContainsKey(string)
Determines whether the System.Collections.Generic.IDictionary%602 contains an element with the specified key.
public bool ContainsKey(string key)
Parameters
key
string
The key to locate in the
Returns
bool
true if the
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
IEnumerator<KeyValuePair<string, object>>
An enumerator that can be used to iterate through the collection.
Remove(string)
Removes the element with the specified key from the System.Collections.Generic.IDictionary%602.
public bool Remove(string key)
Parameters
key
string
The key of the element to remove.
Returns
bool
true if the element is successfully removed; otherwise, false. This method also returns false if key
was not found in the original
TryGetValue(string, out object)
Gets the value associated with the specified key.
public bool TryGetValue(string key, out object value)
Parameters
key
string
The key whose value to get.
value
object
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value
parameter. This parameter is passed uninitialized.
Returns
bool
true if the object that implements
CreateBuilder()
public static CompositeDictionary.Builder CreateBuilder()
Returns
Implements
-
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
-
System.Collections.Generic.IDictionary<System.String,System.Object>
-
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
-
System.Collections.IEnumerable