public Namespace GetOrCreateNamespace(string typeNamespaceName)
 {
     return(RegistryUtils.GetFromDictOrCreateAndAdd(typeNamespaceName, _namespaces,
                                                    s => new Namespace(typeNamespaceName, new List <IType>())));
 }
 public MethodMemberInstance GetOrCreateMethodFromMethodReference([NotNull] MethodReference methodReference,
                                                                  [NotNull] Func <string, MethodMemberInstance> createFunc)
 {
     return(RegistryUtils.GetFromDictOrCreateAndAdd(methodReference.BuildFullName(), _allMethods, createFunc));
 }
示例#3
0
 public IType GetOrCreateTypeFromTypeReference([NotNull] TypeReference typeReference,
                                               [NotNull] Func <string, IType> createFunc)
 {
     return(RegistryUtils.GetFromDictOrCreateAndAdd(typeReference.FullName, _allTypes,
                                                    createFunc));
 }
示例#4
0
 public Assembly GetOrCreateAssembly(string assemblyName, string assemblyFullName, bool isOnlyReferenced)
 {
     return(RegistryUtils.GetFromDictOrCreateAndAdd(assemblyName, _assemblies,
                                                    s => new Assembly(assemblyName, assemblyFullName, isOnlyReferenced)));
 }