public TestScope Convert(Tpn <TestScope, TestExplictType, TestObject, TestOrType, TestMethod, TestValue, TestMember, TestTypeReference> .ITypeSolution typeSolution, Tpn <TestScope, TestExplictType, TestObject, TestOrType, TestMethod, TestValue, TestMember, TestTypeReference> .TypeProblem2.Scope from) { var members = typeSolution.GetMembers(from); var res = new TestScope(); foreach (var member in members) { res.members.Add(typeSolution.GetMember(member)); } return(res); }
public TestMethod Convert(Tpn <TestScope, TestExplictType, TestObject, TestOrType, TestMethod, TestValue, TestMember, TestTypeReference> .ITypeSolution typeSolution, Tpn <TestScope, TestExplictType, TestObject, TestOrType, TestMethod, TestValue, TestMember, TestTypeReference> .TypeProblem2.Method from) { var members = typeSolution.GetMembers(from); var scope = new TestScope(); foreach (var member in members) { scope.members.Add(typeSolution.GetMember(member)); } var @ref = new Box <TestScope>(); @ref.Fill(scope); return(new TestMethod(@ref)); }