public TypeResolveAssembly GetAssembly(Type rType) { var rTypeAssemblyName = rType.Assembly.GetName().Name; TypeResolveAssembly rAssembly = null; this.mAssemblies.TryGetValue(rTypeAssemblyName, out rAssembly); return(rAssembly); }
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); } }