Method GetDelegate
GetDelegate()
Retrieves a delegate of the specified type, representing a native method, if available.
public TDelegate? GetDelegate()
Returns
- TDelegate
The delegate of type
TDelegaterepresenting 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.