Method GetSymbolDelegate
GetSymbolDelegate<T>(nint, string)
Retrieves a delegate of the specified type for the given symbol exported by a native library.
public static T GetSymbolDelegate<T>(nint library, string name) where T : Delegate
Parameters
Returns
- T
An instance of
Tthat can be invoked to call the native function.
Type Parameters
TThe delegate type that matches the native function signature.
Exceptions
- EntryPointNotFoundException
Thrown when the specified symbol cannot be found in the library.