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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public T Find<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: