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)); }
public IType GetOrCreateTypeFromTypeReference([NotNull] TypeReference typeReference, [NotNull] Func <string, IType> createFunc) { return(RegistryUtils.GetFromDictOrCreateAndAdd(typeReference.FullName, _allTypes, createFunc)); }
public Assembly GetOrCreateAssembly(string assemblyName, string assemblyFullName, bool isOnlyReferenced) { return(RegistryUtils.GetFromDictOrCreateAndAdd(assemblyName, _assemblies, s => new Assembly(assemblyName, assemblyFullName, isOnlyReferenced))); }