Exemple #1
0
        /*----------------------------------------------------------------------------------------*/
        /// <summary>
        /// Unloads the module from the kernel.
        /// </summary>
        public virtual void Unload()
        {
            if (!IsLoaded)
            {
                throw new InvalidOperationException(ExceptionFormatter.CannotUnloadModuleThatIsNotLoaded(this));
            }

            Bindings.Each(Kernel.RemoveBinding);
        }