Aerospike LINDPad Driver

AValueHelper..::..OfType<(Of <(<'TResult>)>)> Method

This method returns only those values that exactly of type TResult. To obtain values coerce into a type, use [Convert{TResult}(IEnumerable{AValue})].

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public static IEnumerable<TResult> OfType<TResult>(
	this IEnumerable<AValue> source
)

Type Parameters

TResult
The type each element matches

Parameters

source
Type: IEnumerable<(Of <(<'AValue>)>)>
A collection of AValue items

Return Value

A new collection of underlying items that match TResult

Exceptions


ExceptionCondition
ArgumentNullExceptionif source is null

See Also


[Cast{TResult}(IEnumerable{AValue})]
[Convert{TResult}(IEnumerable{AValue})]