Class CountrySpecifications
Implements
Inherited Members
Namespace: Inttegro
Assembly: Inttegro.dll
Syntax
[JsonConverter(typeof(CountrySpecificationsJsonConverter))]
public sealed class CountrySpecifications : IReadOnlyDictionary<string, CountrySpecification>, IReadOnlyCollection<KeyValuePair<string, CountrySpecification>>, IEnumerable<KeyValuePair<string, CountrySpecification>>, IEnumerable
Properties
| Edit this page View SourceCount
Gets the number of elements in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int | The number of elements in the collection. |
this[string]
Gets the element that has the specified key in the read-only dictionary.
Declaration
public CountrySpecification this[string key] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to locate. |
Property Value
| Type | Description |
|---|---|
| CountrySpecification | The element that has the specified key in the read-only dictionary. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| KeyNotFoundException | The property is retrieved and |
Keys
Gets an enumerable collection that contains the keys in the read-only dictionary.
Declaration
public IEnumerable<string> Keys { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> | An enumerable collection that contains the keys in the read-only dictionary. |
Values
Gets an enumerable collection that contains the values in the read-only dictionary.
Declaration
public IEnumerable<CountrySpecification> Values { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<CountrySpecification> | An enumerable collection that contains the values in the read-only dictionary. |
Methods
| Edit this page View SourceContainsKey(string)
Determines whether the read-only dictionary contains an element that has the specified key.
Declaration
public bool ContainsKey(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to locate. |
Returns
| Type | Description |
|---|---|
| bool | true if the read-only dictionary contains an element that has the specified key; otherwise, false. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<KeyValuePair<string, CountrySpecification>> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<KeyValuePair<string, CountrySpecification>> | An enumerator that can be used to iterate through the collection. |
TryGetValue(string, out CountrySpecification)
Gets the value that is associated with the specified key.
Declaration
public bool TryGetValue(string key, out CountrySpecification value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to locate. |
| CountrySpecification | value | 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 |
Returns
| Type | Description |
|---|---|
| bool | true if the object that implements the IReadOnlyDictionary<TKey, TValue> interface contains an element that has the specified key; otherwise, false. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|