DependencyService.RegisterSingleton<T>(T) Method

Definition

public:
generic <typename T>
 where T : class static void RegisterSingleton(T instance);
public static void RegisterSingleton<T> (T instance) where T : class;
static member RegisterSingleton : 'T -> unit (requires 'T : null)
Public Shared Sub RegisterSingleton(Of T As Class) (instance As T)

Type Parameters

T

Parameters

instance
T

Applies to