public void InitializeFrom(MethodInstances other, GenericInstSig git) { foreach (var list in other.methodInstances.Values) { foreach (var methodInst in list) { var newMethod = GenericArgsSubstitutor.Create(methodInst.methodRef, git); Add(new MethodInst(methodInst.origMethodDef, newMethod)); } } }
public void initializeFrom(MethodInstances other, GenericInstanceType git) { foreach (var list in other.methodInstances.Values) { foreach (var methodInst in list) { MethodReference newMethod = MethodReferenceInstance.make(methodInst.methodReference, git); add(new MethodInst(methodInst.origMethodDef, newMethod)); } } }