KeyedByTypeCollection<'TItem>.Find<'T> Method ()

 

Returns the first item in the collection of a specified type.

Namespace:   System.Collections.Generic
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

member Find<'T> : unit -> 'T

Return Value

Type: T

The object of type T if it is a reference type and the value of type T if it is a value type. The default value of the type is returned if no object of type T is contained in the collection: null if it is a reference type and 0 if it is a value type.

Type Parameters

T

The type of item in the collection to find.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: