private static Type CreateType(IDictionary <ITypeDescription, Type> typeBuildMap, ModuleBuilder modBuilder, ITypeDescription typeInfo) { return(typeInfo.TryResolveType(t => GetOrCreateType(typeBuildMap, modBuilder, t)) .Convert(t => AddNativeType(typeInfo, t, typeBuildMap)) .GetValue(() => AddNoNativeType(typeInfo, typeBuildMap, modBuilder))); }
private static Type FindType(ITypeDescription typeInfo, Assembly candidateAssembly) { return(typeInfo.TryResolveType(n => FindType(n, candidateAssembly)) .Convert(t => t) .GetValue( () => FindTypeOrArray(typeInfo, candidateAssembly))); }
private static Type FindTypeOrArray(ITypeDescription typeInfo, Assembly candidateAssembly) { return(typeInfo.TryResolveType(t => FindType(t, candidateAssembly)) .GetValue(() => candidateAssembly.GetType(BuildName(typeInfo.TypeName)))); }
private static Type FindTypeOrArray(ITypeDescription typeInfo, Assembly candidateAssembly) { return typeInfo.TryResolveType(t =>FindType(t,candidateAssembly)) .GetValue(() => candidateAssembly.GetType(BuildName(typeInfo.TypeName))); }
private static Type FindType(ITypeDescription typeInfo, Assembly candidateAssembly) { return typeInfo.TryResolveType(n => FindType(n, candidateAssembly)) .Convert(t => t) .GetValue( () => FindTypeOrArray(typeInfo, candidateAssembly)); }
private static Type CreateType(IDictionary<ITypeDescription, Type> typeBuildMap, ModuleBuilder modBuilder, ITypeDescription typeInfo) { return typeInfo.TryResolveType(t=>GetOrCreateType(typeBuildMap, modBuilder, t)) .Convert(t => AddNativeType(typeInfo, t, typeBuildMap)) .GetValue(() => AddNoNativeType(typeInfo, typeBuildMap, modBuilder)); }