/// <summary> /// Gets an instance of the API of an extension to the API. /// </summary> /// <typeparam name="TContextExtension">The extension type.</typeparam> /// <param name="device">The device the context is on.</param> /// <returns>The extension.</returns> public unsafe TContextExtension GetExtension <TContextExtension>(Device *device) where TContextExtension : ContextExtensionBase { return(ExtensionLoader.LoadContextExtension <TContextExtension>(device, this)); }