Method TryGetValue
TryGetValue(Char[], Int32, Int32, out TValue)
Gets the value associated with the specified key.
Declaration
public virtual bool TryGetValue(char[] key, int offset, int length, out TValue value)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | key | The key of the value to get. |
System.Int32 | offset | The position of the |
System.Int32 | length | The total length of the |
TValue | value | When this method returns, contains 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
Type | Description |
---|---|
System.Boolean |
|
TryGetValue(Char[], out TValue)
Gets the value associated with the specified key.
Declaration
public virtual bool TryGetValue(char[] key, out TValue value)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | key | The key of the value to get. |
TValue | value | When this method returns, contains 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
Type | Description |
---|---|
System.Boolean |
|
TryGetValue(ICharSequence, out TValue)
Gets the value associated with the specified key.
Declaration
public virtual bool TryGetValue(ICharSequence key, out TValue value)
Parameters
Type | Name | Description |
---|---|---|
ICharSequence | key | The key of the value to get. |
TValue | value | When this method returns, contains 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
Type | Description |
---|---|
System.Boolean |
|
TryGetValue(String, out TValue)
Gets the value associated with the specified key.
Declaration
public virtual bool TryGetValue(string key, out TValue value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the value to get. |
TValue | value | When this method returns, contains 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
Type | Description |
---|---|
System.Boolean |
|
Implements
TryGetValue(Object, out TValue)
Gets the value associated with the specified key.
Declaration
public virtual bool TryGetValue(object key, out TValue value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | The key of the value to get. |
TValue | value | When this method returns, contains 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
Type | Description |
---|---|
System.Boolean |
|