Class CustomData
Implements
Inherited Members
Namespace: Inttegro
Assembly: Inttegro.dll
Syntax
[JsonConverter(typeof(CustomDataJsonConverter))]
public sealed class CustomData : IReadOnlyDictionary<string, string>, IReadOnlyCollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, IEnumerable
Constructors
| Edit this page View SourceCustomData()
Declaration
public CustomData()
CustomData(IEnumerable<KeyValuePair<string, string>>)
Declaration
public CustomData(IEnumerable<KeyValuePair<string, string>> values)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<KeyValuePair<string, string>> | values |
Fields
| Edit this page View SourceMaxEncodedBytes
Declaration
public const int MaxEncodedBytes = 25600
Field Value
| Type | Description |
|---|---|
| int |
MaxKeyBytes
Declaration
public const int MaxKeyBytes = 256
Field Value
| Type | Description |
|---|---|
| int |
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 string this[string key] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to locate. |
Property Value
| Type | Description |
|---|---|
| string | 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<string> Values { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> | 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, string>> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<KeyValuePair<string, string>> | An enumerator that can be used to iterate through the collection. |
Remove(string)
Declaration
public bool Remove(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key |
Returns
| Type | Description |
|---|---|
| bool |
Set(string, string)
Declaration
public CustomData Set(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value |
Returns
| Type | Description |
|---|---|
| CustomData |
TryGetValue(string, out string)
Gets the value that is associated with the specified key.
Declaration
public bool TryGetValue(string key, out string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key to locate. |
| string | 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 |
|