Click or drag to resize

ExtensionsGetValueT Method (IDictionaryPropertyKey, Object, PropertyKey, T)

Gets a value from a PropertyKey dictionary.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static T GetValue<T>(
	this IDictionary<PropertyKey, Object> dictionary,
	PropertyKey key,
	T defaultValue = null
)

Parameters

dictionary
Type: System.Collections.GenericIDictionaryPropertyKey, Object
The dictionary.
key
Type: ShellBoost.Core.WindowsPropertySystemPropertyKey
The PropertyKey.
defaultValue (Optional)
Type: T
The default value.

Type Parameters

T
The expected return type.

Return Value

Type: T
The result value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionaryPropertyKey, Object. 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