|
AdapterCollectionBaseTTryGetAdapterTValue Method
|
Attempts to get the adapter with the specified value given testItem function.
Namespace: GSF.TimeSeries.AdaptersAssembly: 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
)
Protected Overridable Function TryGetAdapter(Of TValue) (
value As TValue,
testItem As Func(Of T, TValue, Boolean),
<OutAttribute> ByRef adapter As T
) As Boolean
protected:
generic<typename TValue>
virtual bool TryGetAdapter(
TValue value,
Func<T, TValue, bool>^ testItem,
[OutAttribute] T% adapter
)
abstract TryGetAdapter :
value : 'TValue *
testItem : Func<'T, 'TValue, bool> *
adapter : 'T byref -> bool
override TryGetAdapter :
value : 'TValue *
testItem : Func<'T, 'TValue, bool> *
adapter : 'T byref -> bool
JavaScript does not support generic types or methods.
View SourceParameters
- 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
Booleantrue if adapter with the specified
value was found; otherwise
false.
See Also