Binarysharp.MemoryManagement.Modules.ModuleFactory.ModuleFactory C# (CSharp) Method

ModuleFactory() private method

Initializes a new instance of the ModuleFactory class.
private ModuleFactory ( MemorySharp memorySharp ) : System
memorySharp MemorySharp The reference of the object.
return System
        internal ModuleFactory(MemorySharp memorySharp)
        {
            // Save the parameter
            MemorySharp = memorySharp;

            // Create a list containing all injected modules
            InternalInjectedModules = new List<InjectedModule>();

            // Save a reference of the main module (the main module is required for a lot of operations, cached for speed reasons)
            MainModule = FetchModule(MemorySharp.Native.MainModule);
        }