Esempio n. 1
0
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    Project.Dispose();
                    tasker.Dispose();
                    relations.Dispose();
                    computers.Dispose();
                    computerIPs.Dispose();
                    files.Dispose();
                    Ips.Dispose();
                    computerDomains.Dispose();
                    lstLimits.Dispose();
                    domains.Dispose();
                    plugins.Dispose();
                }

                Project         = null;
                tasker          = null;
                computerDomains = null;
                lstLimits       = null;
                domains         = null;
                relations       = null;
                computers       = null;
                files           = null;
                Ips             = null;
                plugins         = null;

                disposedValue = true;
            }
        }