Encog.EncogFramework.UnregisterPlugin C# (CSharp) Method

UnregisterPlugin() public method

Unregister a plugin. If you unregister the current logging or calc plugin, a new system one will be created. Encog will crash without a logging or system plugin.
public UnregisterPlugin ( EncogPluginBase plugin ) : void
plugin EncogPluginBase
return void
        public void UnregisterPlugin(EncogPluginBase plugin)
        {
            // is it a special plugin?
            // if so, replace with the system, Encog will crash without these
            if (plugin == _loggingPlugin)
            {
                _loggingPlugin = new SystemLoggingPlugin();
            }

            // remove it
            _plugins.Remove(plugin);
        }