Click or drag to resize

CurrentGetServiceT, U Method

Gets a service, optionally using a fallback service type.

Namespace: Altaxo
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static T GetService<T, U>()
where T : class, U

Type Parameters

T
The preferred service type to retrieve.
U
The fallback service type to query if T is not registered.

Return Value

T
The registered service instance, or null if no compatible service was found.
See Also