Dispose() public method

public Dispose ( ) : void
return void
        public ModuleDataManager(string modsDirectoryPath)
        {
            if (sInstance != null)
            {
                sInstance.Dispose();
                sInstance = null;
            }

            mModsDirectoryPath = JsonHelper.NormalizeSystemPath(modsDirectoryPath);
            sInstance          = this;
        }
        public ModuleDataManager(string modsDirectoryPath, string extraModsDirectoryPath)
        {
            if (sInstance != null)
            {
                sInstance.Dispose();
                sInstance = null;
            }

            mModsDirectoryPath = JsonHelper.NormalizeSystemPath(modsDirectoryPath);
            sInstance          = this;
            // The additional mods directory path can be empty if modder develops inside the mods folder
            if (extraModsDirectoryPath != string.Empty)
            {
                mSteamUploadsDirectoryPath = JsonHelper.NormalizeSystemPath(extraModsDirectoryPath);
            }
        }