TypeInstanceResolver getTypeInstance(ITypeDefOrRef typeRef)
 {
     TypeInstanceResolver instance;
     if (!typeRefToInstance.TryGetValue(typeRef, out instance))
         typeRefToInstance[typeRef] = instance = new TypeInstanceResolver(type, typeRef);
     return instance;
 }
Beispiel #2
0
 TypeInstanceResolver getTypeInstance(TypeReference typeReference)
 {
     var key = new TypeReferenceKey(typeReference);
     TypeInstanceResolver instance;
     if (!typeRefToInstance.TryGetValue(key, out instance))
         typeRefToInstance[key] = instance = new TypeInstanceResolver(type, typeReference);
     return instance;
 }
Beispiel #3
0
        TypeInstanceResolver GetTypeInstance(ITypeDefOrRef typeRef)
        {
            TypeInstanceResolver instance;

            if (!typeRefToInstance.TryGetValue(typeRef, out instance))
            {
                typeRefToInstance[typeRef] = instance = new TypeInstanceResolver(type, typeRef);
            }
            return(instance);
        }
Beispiel #4
0
        TypeInstanceResolver getTypeInstance(TypeReference typeReference)
        {
            var key = new TypeReferenceKey(typeReference);
            TypeInstanceResolver instance;

            if (!typeRefToInstance.TryGetValue(key, out instance))
            {
                typeRefToInstance[key] = instance = new TypeInstanceResolver(type, typeReference);
            }
            return(instance);
        }