DictionaryExtensionsTryGetAndReturnTKey, TValue Method

Quartz.NET 3.0 API Documentation
Tries to read value and returns the value if successfully read. Otherwise return default value for value's type.

Namespace:  Quartz.Util
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
public static TValue TryGetAndReturn<TKey, TValue>(
	this IDictionary<TKey, TValue> dictionary,
	TKey key
)

Parameters

dictionary
Type: System.Collections.GenericIDictionaryTKey, TValue
key
Type: TKey

Type Parameters

TKey
TValue

Return Value

Type: TValue

[Missing <returns> documentation for "M:Quartz.Util.DictionaryExtensions.TryGetAndReturn``2(System.Collections.Generic.IDictionary{``0,``1},``0)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionaryTKey, TValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference