Table of Contents

Class Module

Namespace
GLib
Assembly
GLib-2.0.dll
public static class Module
Inheritance
Module
Inherited Members

Methods

Initialize()

Initialize the GLib module.

public static void Initialize()

Remarks

Calling this method is necessary to correctly initialize the bindings and should be done before using anything else in the GLib namespace.

SetCustomDllImportResolver(DllImportResolver)

Set a custom DllImportResolver. This disables the automatic loading of native binaries for GLib. If the given DllImportResolver receives the library name "GLib" or "GObject" it has to return a pointer to the desired native GLib/GObject binary (e.g. libglib-2.0.so.0 or libgobject-2.0.so.0).

[Experimental("GirCore1009", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1009.html")]
public static void SetCustomDllImportResolver(DllImportResolver customDllImportResolver)

Parameters

customDllImportResolver DllImportResolver

Custom DllImportResolver to use.

Remarks

Please be aware that using this API means you are out of the officially supported area as you are able to combine GirCore with some binary the package was not build for. Please consider to generate a custom GirCore package which exactly matches your binary.

Exceptions

Exception

Throws an exception if the method is called after module initialization.