Click or drag to resize

ExtensionsReadValueT Method

Reads the value of the dictionary in the specified key and casts it to the specified type.

Namespace:  Zyrenth.Zora
Assembly:  ZoraSharp (in ZoraSharp.dll) Version: 2.3
Syntax
[CLSCompliantAttribute(false)]
public static T ReadValue<T>(
	this IDictionary<string, Object> dictionary,
	string key
)
where T : IConvertible

Parameters

dictionary
Type: System.Collections.GenericIDictionaryString, Object
The dictionary.
key
Type: SystemString
The key.

Type Parameters

T
The type to convert the stored value to

Return Value

Type: T
The value in the dictionary after it has been converted to the desired type

Usage Note

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