ElementIdMapFindT Method (ListElementBase, ElementType) |
Finds the first occurance of an Element id give a list of Elements.
Namespace: StreamCoders.ContainerAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static T Find<T>(
this List<ElementBase> elements,
ElementType elementType
)
where T : ElementBase
<ExtensionAttribute>
Public Shared Function Find(Of T As ElementBase) (
elements As List(Of ElementBase),
elementType As ElementType
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : ElementBase
static T Find(
List<ElementBase^>^ elements,
ElementType elementType
)
[<ExtensionAttribute>]
static member Find :
elements : List<ElementBase> *
elementType : ElementType -> 'T when 'T : ElementBase
Parameters
- elements
- Type: System.Collections.GenericListElementBase
The elements to act on.
- elementType
- Type: StreamCoders.ContainerElementType
Type of the element.
Type Parameters
- T
-
Generic type parameter.
Return Value
Type:
T
A T.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ListElementBase. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also