public override void dictionaryTest_async(AMD_TestIntf_dictionaryTest cb, Dictionary<int, B> bin, Ice.Current current) { Dictionary<int, B> bout = new Dictionary<int, B>(); int i; for(i = 0; i < 10; ++i) { B b = bin[i]; D2 d2 = new D2(); d2.sb = b.sb; d2.pb = b.pb; d2.sd2 = "D2"; d2.pd2 = d2; bout[i * 10] = d2; } Dictionary<int, B> r = new Dictionary<int, B>(); for(i = 0; i < 10; ++i) { string s = "D1." + (i * 20).ToString(); D1 d1 = new D1(); d1.sb = s; d1.pb = (i == 0 ? null : r[(i - 1) * 20]); d1.sd1 = s; d1.pd1 = d1; r[i * 20] = d1; } cb.ice_response(r, bout); }
public override Dictionary<int, B> dictionaryTest(Dictionary<int, B> bin, out Dictionary<int, B> bout, Ice.Current current) { bout = new Dictionary<int, B>(); int i; for(i = 0; i < 10; ++i) { B b = bin[i]; D2 d2 = new D2(); d2.sb = b.sb; d2.pb = b.pb; d2.sd2 = "D2"; d2.pd2 = d2; bout[i * 10] = d2; } Dictionary<int, B> r = new Dictionary<int, B>(); for(i = 0; i < 10; ++i) { string s = "D1." + (i * 20).ToString(); D1 d1 = new D1(); d1.sb = s; d1.pb = i == 0 ? null : r[(i - 1) * 20]; d1.sd1 = s; d1.pd1 = d1; r[i * 20] = d1; } return r; }
public DelegateCompatibilityClass() { _d1 = ExampleMethod; _d11 = ExampleMethod; // _d2 = _d1; ERROR _d2 = new D2(_d1); // This, however, is permitted }
public override B D2AsB(Ice.Current current) { D2 d2 = new D2(); d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; D1 d1 = new D1(); d1.pb = d2; d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; d1.pd1 = d2; d2.pb = d1; d2.pd2 = d1; return d2; }
public override D1 D1AsD1(Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return d1; }
public override void D2AsB_async(AMD_TestIntf_D2AsB cb, Ice.Current current) { D2 d2 = new D2(); d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; D1 d1 = new D1(); d1.pb = d2; d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; d1.pd1 = d2; d2.pb = d1; d2.pd2 = d1; cb.ice_response(d2); }
paramTest1Async(Current current) { var d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; var d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return(MakeValueTask(((B?)d1, (B?)d2))); }
public ValueTask <B?> D2AsBAsync(Current current) { var d2 = new D2(); d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; var d1 = new D1(); d1.pb = d2; d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; d1.pd1 = d2; d2.pb = d1; d2.pd2 = d1; return(new ValueTask <B?>(d2)); }
returnTest2Async(Ice.Current current) { var d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; var d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return(FromResult(((B?)d1, (B?)d1, (B?)d2))); }
public override D1 D1AsD1(Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return(d1); }
returnTest2Async(Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return(Task.FromResult <TestIntf_ReturnTest2Result>(new TestIntf_ReturnTest2Result(d1, d1, d2))); }
public override Task <B> D2AsBAsync(Ice.Current current) { D2 d2 = new D2(); d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; D1 d1 = new D1(); d1.pb = d2; d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; d1.pd1 = d2; d2.pb = d1; d2.pd2 = d1; return(Task.FromResult <B>(d2)); }
public override Task <D1> D1AsD1Async(Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return(Task.FromResult <D1>(d1)); }
public ValueTask <B?> D1AsBAsync(Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return(FromResult <B?>(d1)); }
public override B D2AsB(Ice.Current current) { D2 d2 = new D2(); d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; D1 d1 = new D1(); d1.pb = d2; d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; d1.pd1 = d2; d2.pb = d1; d2.pd2 = d1; return(d2); }
paramTest1Async(Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return(FromResult(((B?)d1, (B?)d2))); }
protected void Page_Load(object sender, EventArgs e) { con.Open(); SqlCommand cmd = con.CreateCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "select * from Product where id= 8"; cmd.ExecuteNonQuery(); DataTable dt = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dt); D2.DataSource = dt; D2.DataBind(); con.Close(); }
public void throwUnknownDerivedAsBase(Ice.Current current) { D2 d2 = new D2(); d2.sb = "sb d2"; d2.pb = d2; d2.sd2 = "sd2 d2"; d2.pd2 = d2; UnknownDerivedException ude = new UnknownDerivedException(); ude.sbe = "sbe"; ude.pb = d2; ude.sude = "sude"; ude.pd2 = d2; throw ude; }
private void simpleButton3_Click(object sender, EventArgs e) { MainMenu.Stop(); HostMenuMain.Stop(); B1.Stop(); B2.Stop(); B3.Stop(); B4.Stop(); B5.Stop(); Client1.Stop(); C1.Stop(); C2.Stop(); C3.Stop(); C4.Stop(); ResetMenu.Stop(); D1.Stop(); D2.Stop(); D3.Stop(); D4.Stop(); D5.Stop(); AccountMenu.Stop(); E1.Stop(); E2.Stop(); E3.Stop(); E4.Stop(); E5.Stop(); TeleportMenu.Stop(); F1.Stop(); F2.Stop(); F3.Stop(); F4.Stop(); VisionMenu.Stop(); G1.Stop(); G2.Stop(); G3.Stop(); G4.Stop(); G5.Stop(); G6.Stop(); OtherMenu.Stop(); H1.Stop(); PS3.Extension.WriteString(0x004eb39c, "^5Menu ^1Closed"); toolStripStatusLabel2.Text = "Not Started !"; toolStripStatusLabel2.ForeColor = Color.Red; simpleButton2.Enabled = true; simpleButton3.Enabled = false; }
public void SendPacket() { int checksum = 0; if (PacketNum++ > 999) { PacketNum = 0; } //get all the data in string form String num = PacketNum.ToString("D3"); String A0val = A0.ReadRaw().ToString("D4"); String A1val = A1.ReadRaw().ToString("D4"); String A2val = A2.ReadRaw().ToString("D4"); String A3val = A3.ReadRaw().ToString("D4"); String A4val = A4.ReadRaw().ToString("D4"); String A5val = A5.ReadRaw().ToString("D4"); char D0val = D0.Read() ? '1' : '0'; char D1val = D1.Read() ? '1' : '0'; char D2val = D2.Read() ? '1' : '0'; char D3val = D3.Read() ? '1' : '0'; char D4val = D4.Read() ? '1' : '0'; char D5val = D5.Read() ? '1' : '0'; char D6val = D6.Read() ? '1' : '0'; char D7val = D7.Read() ? '1' : '0'; char Btnval = Btn.Read() ? '1' : '0'; //concat the data String packet = num + A0val + A1val + A2val + A3val + A4val + A5val + Btnval + D0val + D1val + D2val + D3val + D4val + D5val + D6val + D7val; //compute checksum foreach (char digit in packet) { checksum += (digit); } checksum %= 1000; //append checksum and protocol frame stuff packet = "###" + packet + checksum + "\r\n"; //convert to byte array for sending byte[] bytepacket = System.Text.Encoding.UTF8.GetBytes(packet); //send the packet _serial.Write(bytepacket, 0, bytepacket.Length); }
public void paramTest1(out B p1, out B p2, Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; p1 = d1; p2 = d2; }
public override void throwUnknownDerivedAsBase_async(AMD_TestIntf_throwUnknownDerivedAsBase cb, Ice.Current current) { D2 d2 = new D2(); d2.sb = "sb d2"; d2.pb = d2; d2.sd2 = "sd2 d2"; d2.pd2 = d2; UnknownDerivedException ude = new UnknownDerivedException(); ude.sbe = "sbe"; ude.pb = d2; ude.sude = "sude"; ude.pd2 = d2; cb.ice_exception(ude); }
public override void throwUnknownDerivedAsBaseAsync(Action response, Action <Exception> exception, Ice.Current current) { var d2 = new D2(); d2.sb = "sb d2"; d2.pb = d2; d2.sd2 = "sd2 d2"; d2.pd2 = d2; var ude = new UnknownDerivedException(); ude.sbe = "sbe"; ude.pb = d2; ude.sude = "sude"; ude.pd2 = d2; exception(ude); }
public void division(int no1, int no2) { int result = 0; try { result = no1 / no2; Console.WriteLine("The result is " + result); } catch (DivideByZeroException D2) { Console.WriteLine("---------------------"); Console.Write(D2.ToString()); //reference variable allows us to see detais of the exception Console.WriteLine("You cannot divide by Zero amigo, try again or go back to school"); Console.WriteLine("No offence"); Console.WriteLine("---------------------"); } }
public Task throwUnknownDerivedAsBaseAsync(Ice.Current current) { var d2 = new D2(); d2.sb = "sb d2"; d2.pb = d2; d2.sd2 = "sd2 d2"; d2.pd2 = d2; var ude = new UnknownDerivedException(); ude.sbe = "sbe"; ude.pb = d2; ude.sude = "sude"; ude.pd2 = d2; throw ude; }
protected void Page_Load(object sender, EventArgs e) { con.Open(); SqlCommand cmd2 = con.CreateCommand(); cmd2.CommandType = CommandType.Text; cmd2.CommandText = "select product_name,Username,Review from Product_Review where id=18"; cmd2.ExecuteNonQuery(); DataTable dt1 = new DataTable(); SqlDataAdapter da1 = new SqlDataAdapter(cmd2); da1.Fill(dt1); // D2.DataSource = dt1; D2.DataSource = null; D2.DataBind(); con.Close(); }
private void FemSelect_Load(object sender, EventArgs e) { if (this.PailieMode == 3) { this.buttonX1.Visible = true; this.textBoxX29.Visible = true; this.textBoxX30.Visible = true; this.textBoxX31.Visible = true; this.textBoxX32.Visible = true; this.textBoxX33.Visible = true; } else { this.buttonX1.Visible = false; this.textBoxX29.Visible = false; this.textBoxX30.Visible = false; this.textBoxX31.Visible = false; this.textBoxX32.Visible = false; this.textBoxX33.Visible = false; } if (this.isOneOrTwo == 0) { this.textBoxX1.Text = "情况一组合方式"; this.textBoxX8.Text = A1.ToString(); this.textBoxX9.Text = A2.ToString(); this.textBoxX10.Text = A3.ToString(); this.textBoxX20.Text = B1.ToString(); this.textBoxX21.Text = B2.ToString(); this.textBoxX22.Text = B3.ToString(); this.textBoxX23.Text = C1.ToString(); this.textBoxX24.Text = C2.ToString(); this.textBoxX25.Text = C3.ToString(); this.textBoxX26.Text = D1.ToString(); this.textBoxX27.Text = D2.ToString(); this.textBoxX28.Text = D3.ToString(); } else if (this.isOneOrTwo == 1) { this.textBoxX1.Text = "情况二组合方式"; this.textBoxX8.Text = A1.ToString(); this.textBoxX9.Text = A2.ToString(); this.textBoxX10.Text = A3.ToString(); this.textBoxX20.Text = B1.ToString(); this.textBoxX21.Text = B2.ToString(); this.textBoxX22.Text = B3.ToString(); this.textBoxX23.Text = C1.ToString(); this.textBoxX24.Text = C2.ToString(); this.textBoxX25.Text = C3.ToString(); this.textBoxX26.Text = D1.ToString(); this.textBoxX27.Text = D2.ToString(); this.textBoxX28.Text = D3.ToString(); } }
public void TestMethod(int input) { int j = 0; // Initialize the delegates with lambda expressions. // Note access to 2 outer variables. // del will be invoked within this method. del = () => { j = 10; return j > input; }; // del2 will be invoked after TestMethod goes out of scope. del2 = (x) => {return x == j; }; // Demonstrate value of j: // Output: j = 0 // The delegate has not been invoked yet. Console.WriteLine("j = {0}", j); // Invoke the delegate. bool boolResult = del(); // Output: j = 10 b = True Console.WriteLine("j = {0}. b = {1}", j, boolResult); }
public ActionResult <Employee> GetEmployee(string email) { var validatedEmail = fs(D2.createEmailAddress(email)); if (!validatedEmail.IsFail) { return(BadRequest(validatedEmail.FailAsEnumerable().First())); } else { var emailAddress = validatedEmail.SuccessAsEnumerable().First(); var timedEmployee = emailAddress.Apply(email => fs(D2.tryGetEmployeeFromDatabase(_db, email))).Map(fs); var timedResult = timedEmployee.Map(oe => oe .Map(e => (ActionResult <Employee>)Ok(e)) .IfNone(() => NotFound())); var result = timedResult.IfFail(e => StatusCode(StatusCodes.Status408RequestTimeout, e.First())); return(result); } }
protected void Page_Load(object sender, EventArgs e) { string connectionstring = WebConfigurationManager.ConnectionStrings["Unibook1ConnectionString"].ConnectionString; var uname = Context.User.Identity.Name; using (SqlConnection con = new SqlConnection(connectionstring)) { SqlCommand com = new SqlCommand("Profile", con); com.CommandType = CommandType.StoredProcedure; com.Parameters.AddWithValue("@useri", uname); con.Open(); SqlDataAdapter adapter = new SqlDataAdapter(com); DataSet ds = new DataSet(); adapter.Fill(ds); D2.DataSource = ds; D2.DataBind(); } }
public void TestMethod(int input) { int j = 0; // Initialize the delegates with lambda expressions. // Note access to 2 outer variables. // del will be invoked within this method. del = () => { j = 10; return(j > input); }; // del2 will be invoked after TestMethod goes out of scope. del2 = (x) => { return(x == j); }; // Demonstrate value of j: // Output: j = 0 // The delegate has not been invoked yet. Console.WriteLine("j = {0}", j); // Invoke the delegate. bool boolResult = del(); // Output: j = 10 b = True Console.WriteLine("j = {0}. b = {1}", j, boolResult); }
// Use this for initialization void Start() { stage = Stage.placeTiles; currentSelection = TileType.ground; tiles = new Tile[height, width]; nodes = new Node[height, width]; nodes_CanBreak = (Node[, ])nodes.Clone(); Turret.turrets = new HashSet <Transform>(); Wall.walls = new HashSet <Transform>(); Enemy.enemies = new HashSet <Transform>(); damageEffect = (GameObject)Resources.Load("Damage"); GenerateTileMap(); InitializeData(); // pathfinder = new Djikstra(); pathfinder = new D2(); mapScale = Mathf.Max(width, height); Camera.main.transform.position = new Vector3(width / 2f - 0.5f, mapScale, height / 2f - 0.5f); }
public static int Main(string[] args) { //Comments are what is printed out. var d1 = new D1(); var d2 = new D2(); d1.Foo <C1>(); //31 Console.WriteLine(); d1.Foo <C2>(); //31 Console.WriteLine(); //d2.Foo<C1>(); //Error constraint mismatch d2.Foo <C2>(); //421 Console.WriteLine(); B_base b_d2 = d2; b_d2.Foo <C1>(); //1 Console.WriteLine(); b_d2.Foo <C2>(); //1 Console.WriteLine(); return(0); }
// Update is called once per frame void Update() { D1 = DistanceBPandC(Player, CheckPoint1); D2 = DistanceBPandC(Player, CheckPoint2); INDI.text = D1.ToString() + " " + D2.ToString(); if (D1 <= 2f && ScreenShown == false) { Screen.SetActive(true); ScreenShown = true; } else if ((D2 <= 3f && ScreenShown == false)) { Screen.SetActive(true); ScreenShown = true; } else if (D1 > 2f && D2 > 3f) { Screen.SetActive(false); ScreenShown = false; } }
public static int Main(string[] args) { Base b; if (args.Length > 0) { D1 d1 = new D1(); b = d1; d1.B1(); d1.M1(); } else { D2 d2 = new D2(); b = d2; d2.B1(); d2.M1(); } b.B0(); return(b.value); }
public void TestMethod(int input) { int j = 0; // Initialize the delegates with lambda expressions. // Note access to 2 outer variables. // del will be invoked within this method. del = () => { j = 10; return(j > input); }; //【注意】这一句是在第35行才运行的 // del2 will be invoked after TestMethod goes out of scope. del2 = (x) => { return(x == j); }; //从main中传入参数在这里与j进行比较 // Demonstrate value of j: // The delegate has not been invoked yet. Console.WriteLine("j = {0}", j); // 输出j=0. bool boolResult = del(); //返回ture或者false,这里j已经被改成了10 //lambda表达式引用外部变量在生存期内扩展,作用范围持续到被垃圾回收 //所以下一句j依然保持10 Console.WriteLine("j = {0}. b = {1}", j, boolResult); //输出 j = 10 b = True }
public static void CreateUnnamed(ref int x, int y) { int c = 150; d1 = delegate { WriteLine("Calling Annonymus Without Param"); //int x = 10; //int y = 20; //int c = 30; //Console.WriteLine("Ref Param = " + x); WriteLine("Param = " + y); WriteLine("Local Var = " + c); }; d2 = delegate { WriteLine("Calling Annonymus By Param "); }; d3 = delegate { return(10); }; }
public void CloningDelegateToADifferentTypeIsANoOp() { D1 d1 = () => {}; D2 d2 = new D2(d1); Assert.IsTrue((object)d1 == (object)d2); }
static void T (D2 d) { }
public override Task throwUnknownDerivedAsBaseAsync(Ice.Current current) { var d2 = new D2(); d2.sb = "sb d2"; d2.pb = d2; d2.sd2 = "sd2 d2"; d2.pd2 = d2; var ude = new UnknownDerivedException(); ude.sbe = "sbe"; ude.pb = d2; ude.sude = "sude"; ude.pd2 = d2; throw ude; }
public void M(D0 p0, D1 p1, D2 p2) { /* $ */ }
public override Task<TestIntf_DictionaryTestResult> dictionaryTestAsync(Dictionary<int, B> bin, Ice.Current current) { var bout = new Dictionary<int, B>(); int i; for(i = 0; i < 10; ++i) { B b = bin[i]; var d2 = new D2(); d2.sb = b.sb; d2.pb = b.pb; d2.sd2 = "D2"; d2.pd2 = d2; bout[i * 10] = d2; } var r = new Dictionary<int, B>(); for(i = 0; i < 10; ++i) { string s = "D1." + (i * 20).ToString(); var d1 = new D1(); d1.sb = s; d1.pb = (i == 0 ? null : r[(i - 1) * 20]); d1.sd1 = s; d1.pd1 = d1; r[i * 20] = d1; } return Task.FromResult<TestIntf_DictionaryTestResult>(new TestIntf_DictionaryTestResult(r, bout)); }
public static int F(ref int x, out int y) { x = 1; y = 2; return y; }
public override Task<TestIntf_ReturnTest2Result> returnTest2Async(Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return Task.FromResult<TestIntf_ReturnTest2Result>(new TestIntf_ReturnTest2Result(d1, d1, d2)); }
static int Foo (D2 d) { return 2; }
public override void paramTest1(out B p1, out B p2, Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; p1 = d1; p2 = d2; }
static void Foo (D2 d) { }
public override Task<B> D1AsBAsync(Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; return Task.FromResult<B>(d1); }
public override void paramTest3_async(AMD_TestIntf_paramTest3 cb, Ice.Current current) { D2 d2 = new D2(); d2.sb = "D2.sb (p1 1)"; d2.pb = null; d2.sd2 = "D2.sd2 (p1 1)"; D1 d1 = new D1(); d1.sb = "D1.sb (p1 2)"; d1.pb = null; d1.sd1 = "D1.sd2 (p1 2)"; d1.pd1 = null; d2.pd2 = d1; D2 d4 = new D2(); d4.sb = "D2.sb (p2 1)"; d4.pb = null; d4.sd2 = "D2.sd2 (p2 1)"; D1 d3 = new D1(); d3.sb = "D1.sb (p2 2)"; d3.pb = null; d3.sd1 = "D1.sd2 (p2 2)"; d3.pd1 = null; d4.pd2 = d3; cb.ice_response(d3, d2, d4); }
public C (D2 d) { }
public override void returnTest2_async(AMD_TestIntf_returnTest2 cb, Ice.Current current) { D1 d1 = new D1(); d1.sb = "D1.sb"; d1.sd1 = "D1.sd1"; D2 d2 = new D2(); d2.pb = d1; d2.sb = "D2.sb"; d2.sd2 = "D2.sd2"; d2.pd2 = d1; d1.pb = d2; d1.pd1 = d2; cb.ice_response(d1, d1, d2); }
public override B paramTest3(out B p1, out B p2, Ice.Current current) { D2 d2 = new D2(); d2.sb = "D2.sb (p1 1)"; d2.pb = null; d2.sd2 = "D2.sd2 (p1 1)"; p1 = d2; D1 d1 = new D1(); d1.sb = "D1.sb (p1 2)"; d1.pb = null; d1.sd1 = "D1.sd2 (p1 2)"; d1.pd1 = null; d2.pd2 = d1; D2 d4 = new D2(); d4.sb = "D2.sb (p2 1)"; d4.pb = null; d4.sd2 = "D2.sd2 (p2 1)"; p2 = d4; D1 d3 = new D1(); d3.sb = "D1.sb (p2 2)"; d3.pb = null; d3.sd1 = "D1.sd2 (p2 2)"; d3.pd1 = null; d4.pd2 = d3; return d3; }
int Select (D2 d) { return 1; }
public override void throwUnknownDerivedAsBase(Ice.Current current) { D2 d2 = new D2(); d2.sb = "sb d2"; d2.pb = d2; d2.sd2 = "sd2 d2"; d2.pd2 = d2; UnknownDerivedException ude = new UnknownDerivedException(); ude.sbe = "sbe"; ude.pb = d2; ude.sude = "sude"; ude.pd2 = d2; throw ude; }
public override Task<TestIntf_ParamTest3Result> paramTest3Async(Ice.Current current) { D2 d2 = new D2(); d2.sb = "D2.sb (p1 1)"; d2.pb = null; d2.sd2 = "D2.sd2 (p1 1)"; D1 d1 = new D1(); d1.sb = "D1.sb (p1 2)"; d1.pb = null; d1.sd1 = "D1.sd2 (p1 2)"; d1.pd1 = null; d2.pd2 = d1; D2 d4 = new D2(); d4.sb = "D2.sb (p2 1)"; d4.pb = null; d4.sd2 = "D2.sd2 (p2 1)"; D1 d3 = new D1(); d3.sb = "D1.sb (p2 2)"; d3.pb = null; d3.sd1 = "D1.sd2 (p2 2)"; d3.pd1 = null; d4.pd2 = d3; return Task.FromResult<TestIntf_ParamTest3Result>(new TestIntf_ParamTest3Result(d3, d2, d4)); }