public void AddAssemblyType(byte[] _dll, byte[] _pdb) { if (_dll == null) { throw new System.NullReferenceException("AddAssemblyType bytes 不可为null"); } mAssembly = System.AppDomain.CurrentDomain.Load(_dll, _pdb); if (mAssembType == null) { mAssembType = new SafeMap <string, Type>(); } Type[] ttypes = mAssembly.GetTypes(); foreach (Type ttype in ttypes) { if (mAssembType.ContainsKey(ttype.FullName)) { continue; } mAssembType.Add(ttype.FullName, ttype); } }