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
Public Function GetByType(Of T As Class) As T
public:
generic<typename T>
where T : ref class
T GetByType()
member GetByType : unit -> 'T when 'T : not struct
Type Parameters
- T
- The type of the extension to get.
Return Value
Type:
TThe extension, or null if an extension of the specified type is not contained in this collection.
See Also