Parameters
Returnselement_class: element class rank: the dimension of the array class bounded: whenever the array has non-zero bounds
a class object describing the array with element type element_type and dimension rank.
Returns
NULL if the runtime will work with the corlib, or a g_malloc allocated string with the error otherwise.Remarks
Checks that the corlib that is loaded matches the version of this runtime.
Parameters
Remarksmethod: The method to compile.
This JIT-compiles the method, and returns the pointer to the native code produced.
Parameters
Remarksassembly: if NULL, this is a global mapping, otherwise the remapping of the dynamic library will only apply to the specified assembly dll: The name of the external library, as it would be found in the DllImport declaration. If prefixed with 'i:' the matching of the library name is done without case sensitivity func: if not null, the mapping will only applied to the named function (the value of EntryPoint) tdll: The name of the library to map the specified dll if it matches. tfunc: if func is not NULL, the name of the function that replaces the invocation
LOCKING: Acquires the loader lock. This function is used to programatically add DllImport remapping in either a specific assembly, or as a global remapping. This is done by remapping references in a DllImport attribute from the dll library name into the tdll name. If the dll name contains the prefix "i:", the comparison of the library name is done without case sensitivity. If you pass func, this is the name of the EntryPoint in a DllImport if specified or the name of the function as determined by DllImport. If you pass func, you must also pass tfunc which is the name of the target function to invoke on a match. Example: mono_dllmap_insert (NULL, "i:libdemo.dll", NULL, relocated_demo_path, NULL); The above will remap DllImport statments for "libdemo.dll" and "LIBDEMO.DLL" to the contents of relocated_demo_path for all assemblies in the Mono process. NOTE: This can be called before the runtime is initialized, for example from mono_config_parse ().
Parameters
Returnsklass: The delegate class
the MonoMethod for the "Invoke" method in the delegate klass or NULL if klass is a broken delegate type
Returns
the root appdomain, to obtain the current domain, use mono_domain_get ()Remarks
The root AppDomain is the initial domain created by the runtime when it is initialized. Programs execute on this AppDomain, but can create new ones later. Currently there is no unmanaged API to create new AppDomains, this must be done from managed code.
Parameters
Returnsdomain_name: name to give to the initial domain filename: filename to load on startup
the initial domain.Remarks
Used by the runtime, users should use mono_jit_init instead. Creates the initial application domain and initializes the mono_defaults structure. This function is guaranteed to not run any IL code. The runtime is initialized using the runtime version required by the provided executable. The version is determined by looking at the exe configuration file and the version PE field)
Returns
the initial domain.Remarks
Creates the initial application domain and initializes the mono_defaults structure. This function is guaranteed to not run any IL code. The runtime is initialized using the default runtime version.
Returns
the initial domain.Remarks
Used by the runtime, users should use mono_jit_init instead.
Creates the initial application domain and initializes the mono_defaults structure. This function is guaranteed to not run any IL code. The runtime is initialized using the provided rutime version.
Parameters
Remarksassembly: reference to an assembly argc: argument count argv: argument vector
Start execution of a program.
Parameters
Remarksargc: number of arguments in the argv array argv: array of strings containing the startup arguments
Launches the Mono JIT engine and parses all the command line options in the same way that the mono command line VM would.
Parameters
Remarksdomain: unused.
Internal routine. This must not be called while there are still running threads executing managed code.
Returns
a MonoArray with the arguments passed to the main program
Parameters
Remarksdomain: domain returned by mono_init ()
Initialize the core AppDomain: this function will run also some IL initialization code, so it needs the execution engine to be fully operational. AppDomain.SetupInformation is set up in mono_runtime_exec_main, where we know the entry_assembly.
Remarks
Returns whether the runtime has been flagged for shutdown. This is consumed by the P:System.Environment.HasShutdownStarted property.
Parameters
Remarksmethod: the method to start the application with (usually Main) argc: number of arguments from the command line argv: array of strings from the command line exc: excetption results
Execute a standard Main() method (argc/argv contains the executable name). This method also sets the command line argument value needed by System.Environment.