Table of Contents

Method GetDelegate

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetDelegate()

Retrieves a delegate of the specified type, representing a native method, if available.

public TDelegate? GetDelegate()

Returns

TDelegate

The delegate of type TDelegate representing the native method, or null if the method cannot be resolved.

Remarks

This method attempts to load a delegate for a native method by dynamically resolving the method from the SkiaSharp API. If the delegate has already been loaded, it is returned immediately. Otherwise, the method resolves the native method, creates the delegate, and caches it for future use.