TypeInstanceResolver getTypeInstance(ITypeDefOrRef typeRef) { TypeInstanceResolver instance; if (!typeRefToInstance.TryGetValue(typeRef, out instance)) typeRefToInstance[typeRef] = instance = new TypeInstanceResolver(type, typeRef); return instance; }
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; }
TypeInstanceResolver GetTypeInstance(ITypeDefOrRef typeRef) { TypeInstanceResolver instance; if (!typeRefToInstance.TryGetValue(typeRef, out instance)) { typeRefToInstance[typeRef] = instance = new TypeInstanceResolver(type, typeRef); } return(instance); }
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); }