예제 #1
0
        public TypeResolveAssembly GetAssembly(Type rType)
        {
            var rTypeAssemblyName = rType.Assembly.GetName().Name;

            TypeResolveAssembly rAssembly = null;

            this.mAssemblies.TryGetValue(rTypeAssemblyName, out rAssembly);
            return(rAssembly);
        }
예제 #2
0
        public void AddAssembly(string rAssemblyName, bool bIsHotfix = false)
        {
            TypeResolveAssembly rTypeResolveAsssembly = null;

            if (bIsHotfix)
            {
                rTypeResolveAsssembly = new TypeResolveAssembly_Hotfix(rAssemblyName);
            }
            else
            {
                rTypeResolveAsssembly = new TypeResolveAssembly_Mono(rAssemblyName);
            }
            rTypeResolveAsssembly.Load();

            if (!this.mAssemblies.ContainsKey(rAssemblyName))
            {
                this.mAssemblies.Add(rAssemblyName, rTypeResolveAsssembly);
            }
        }