Click or drag to resize

AdapterCollectionBaseTTryGetAdapterTValue Method

Attempts to get the adapter with the specified value given testItem function.

Namespace: GSF.TimeSeries.Adapters
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.218-beta
Syntax
protected virtual bool TryGetAdapter<TValue>(
	TValue value,
	Func<T, TValue, bool> testItem,
	out T adapter
)
View Source

Parameters

value  TValue
Value of adapter to get.
testItem  FuncT, TValue, Boolean
Function delegate used to test item value.
adapter  T
Adapter reference if found; otherwise null.

Type Parameters

TValue

Return Value

Boolean
true if adapter with the specified value was found; otherwise false.
See Also