private IType FindType(string fullname) { var type = _assembly.FindType(fullname); if (type == null) { throw new InvalidOperationException(string.Format("Unable to find {0}. Invalid corlib.", fullname)); } return(type); }
/// <summary> /// Finds type in given assembly. /// </summary> /// <param name="asm"></param> /// <param name="fullname"></param> /// <returns></returns> public static IType FindType(IAssembly asm, string fullname) { var t = asm.FindType(fullname); if (t == null) { throw new InvalidOperationException( String.Format("Unable to find type {0}.", fullname)); } return(t); }
private IType Resolve(SystemTypeCode typeCode) { var fullName = GetFullName(typeCode); return(_assembly.FindType(fullName)); }