SystemEX  Lacking
Additional generic collection types missing in .net
SystemEx.Runtime.Module Class Reference

Public Member Functions

 Module (nint v, string strPath)
 Initializes a new Module instance using the specified native handle and file path.
The constructor extracts the module's file name and directory path for informational purposes.

Properties

nint Handle [get, set]
 Gets the native handle of the loaded module.
This value corresponds to the OS‑specific library handle returned by LoadLibrary (Windows), dlopen (Linux), or dlopen (macOS).
string Name [get]
 Gets the file name of the loaded module (e.g., kernel.dll, libfoo.so, libbar.dylib).
string Path [get]
 Gets the directory path where the module file resides.

Constructor & Destructor Documentation

◆ Module()

SystemEx.Runtime.Module.Module ( nint v,
string strPath )

Initializes a new Module instance using the specified native handle and file path.
The constructor extracts the module's file name and directory path for informational purposes.

Parameters
vThe native module handle.
strPathThe full path to the loaded module file.
57 {
58 this.Handle = v;
59 this.Name = System.IO.Path.GetFileName(strPath);
60 this.Path = System.IO.Path.GetDirectoryName(strPath)!;
61 }
@ System
forward indexing
Definition FlexSpan.cs:32

Property Documentation

◆ Handle

nint SystemEx.Runtime.Module.Handle
getset

Gets the native handle of the loaded module.
This value corresponds to the OS‑specific library handle returned by LoadLibrary (Windows), dlopen (Linux), or dlopen (macOS).

47{ get; internal set; }

◆ Name

string SystemEx.Runtime.Module.Name
get

Gets the file name of the loaded module (e.g., kernel.dll, libfoo.so, libbar.dylib).

67{ get; }

◆ Path

string SystemEx.Runtime.Module.Path
get

Gets the directory path where the module file resides.

72{ get; }

The documentation for this class was generated from the following file:
  • Module.cs