internal Type GetType(Universe universe, Assembly context, bool throwOnError, string originalName) { Type type; if (assemblyName != null) { Assembly asm = universe.Load(assemblyName, context, throwOnError); if (asm == null) { return(null); } type = asm.GetTypeImpl(name); } else if (context == null) { type = universe.Mscorlib.GetTypeImpl(name); } else { type = context.GetTypeImpl(name); if (type == null && context != universe.Mscorlib) { type = universe.Mscorlib.GetTypeImpl(name); } } return(Expand(type, context, throwOnError, originalName)); }
private Type ImportMscorlibType(System.Type type) { return(Mscorlib.GetTypeImpl(type.FullName)); }