/// <summary> /// Carrega o assembly informado. /// </summary> /// <param name="name"></param> /// <returns></returns> public System.Reflection.Assembly LoadAssembly(AssemblyPart name) { name.Require("codeBase").NotNull(); ExtractPackageAssemblies(); if (_extractPackageAssembliesException != null) { throw _extractPackageAssembliesException; } System.Reflection.Assembly assembly = null; if (_assemblies != null && _assemblies.TryGetValue(name.Source, out assembly)) { return(assembly); } return(null); }