Click or drag to resize

ExtensionCollectionGetByTypeT Method

Gets the first extension of the specified type that is in this collection.

Namespace:  AGI.Foundation.Infrastructure
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public T GetByType<T>()
where T : class

Type Parameters

T
The type of the extension to get.

Return Value

Type: T
The extension, or null if an extension of the specified type is not contained in this collection.
See Also