IDictionaryPropertyExtensionsTryGetValueTKey, TItem(IDictionaryPropertyTKey, IPropertyWithValidValuesTItem, TItem, TKey, IPropertyWithValidValuesTItem) Method

Attempts to obtain a value associated with given key from this dictionary

Namespace: TSD.API.Remoting.Common.Properties
Assembly: TSD.API.Remoting (in TSD.API.Remoting.dll) Version:
public static bool TryGetValue<TKey, TItem>(
	this IDictionaryProperty<TKey, IPropertyWithValidValues<TItem>, TItem> dictionaryProperty,
	TKey key,
	out IPropertyWithValidValues<TItem> value


dictionaryProperty  IDictionaryPropertyTKey, IPropertyWithValidValuesTItem, TItem
The dictionary to query
key  TKey
The key to look for
value  IPropertyWithValidValuesTItem
The resulting value associated with given key

Type Parameters

The type of keys used to access the item wrappers stored in the dictionary
The type of items stored in the wrappers in the dictionary

Return Value

True in case the given key is present in the dictionary and the value has been retrieved; false otherwise

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionaryPropertyTKey, IPropertyWithValidValuesTItem, TItem. 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
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.