- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_Threading_ExecSyncConcurrentLazyDictionary_2_TryGetValue
        Andrew Koryavchenko edited this page Jun 17, 2018 
        ·
        3 revisions
      
    Gets the value that is associated with the specified key.
Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public bool TryGetValue(
	TKey key,
	out TValue value
)VB
Public Function TryGetValue ( 
	key As TKey,
	<OutAttribute> ByRef value As TValue
) As BooleanF#
abstract TryGetValue : 
        key : 'TKey * 
        value : 'TValue byref -> bool 
override TryGetValue : 
        key : 'TKey * 
        value : 'TValue byref -> bool 
- key
- Type: TKey
 The key to locate.
- value
- Type: TValue
 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.
Type: Boolean
true if the object that implements the IReadOnlyDictionary(TKey, TValue) interface contains an element that has the specified key; otherwise, false.
IReadOnlyDictionary(TKey, TValue).TryGetValue(TKey, TValue)
| Exception | Condition | 
|---|---|
| ArgumentNullException | key is null. | 
ExecSyncConcurrentLazyDictionary(TKey, TValue) Class
CodeJam.Threading Namespace