ExtensionMethodsSafeGetTKey, TVal Method

[Missing <summary> documentation for "M:WorkZone.Dispatcher.Base.Messages.ExtensionMethods.SafeGet``2(System.Collections.Generic.IDictionary{``0,``1},``0)"]

Definition

Namespace: WorkZone.Dispatcher.Base.Messages
Assembly: WorkZone.Dispatcher.Base_24.4.0.0 (in WorkZone.Dispatcher.Base_24.4.0.0.dll) Version: 24.4.0.0 (24.4.0.0)
C#
public static TVal SafeGet<TKey, TVal>(
	this IDictionary<TKey, TVal> dictionary,
	TKey key
)

Parameters

dictionary  IDictionaryTKey, TVal

[Missing <param name="dictionary"/> documentation for "M:WorkZone.Dispatcher.Base.Messages.ExtensionMethods.SafeGet``2(System.Collections.Generic.IDictionary{``0,``1},``0)"]

key  TKey

[Missing <param name="key"/> documentation for "M:WorkZone.Dispatcher.Base.Messages.ExtensionMethods.SafeGet``2(System.Collections.Generic.IDictionary{``0,``1},``0)"]

Type Parameters

TKey

[Missing <typeparam name="TKey"/> documentation for "M:WorkZone.Dispatcher.Base.Messages.ExtensionMethods.SafeGet``2(System.Collections.Generic.IDictionary{``0,``1},``0)"]

TVal

[Missing <typeparam name="TVal"/> documentation for "M:WorkZone.Dispatcher.Base.Messages.ExtensionMethods.SafeGet``2(System.Collections.Generic.IDictionary{``0,``1},``0)"]

Return Value

TVal

[Missing <returns> documentation for "M:WorkZone.Dispatcher.Base.Messages.ExtensionMethods.SafeGet``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, TVal. 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