コード例 #1
0
        /// <summary>
        /// Unloads assembly with specified key.
        /// </summary>
        public void Unload(object key)
        {
            var assemblyProvider = _manager.FindLoadedAssemblyProvider(key);

            if (assemblyProvider == null)
            {
                //there is nothing to do
                return;
            }

            _manager.Unload(assemblyProvider);
        }