上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 63 下一页
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text; namespaceSingleton{classProgram{staticvoidMain(string[]args){ //以下代码在没有重写Equals的情况下//Codonp1=newCodon("dd",23);//Codonp2=newCodon("dd",23);//if(p1.Equals(p2))//{//Console.Write("Equal"); //}/ 阅读全文
posted @ 2013-04-16 13:28 Predator 阅读(349) 评论(0) 推荐(0) 编辑
摘要: privatevoidbutton3_Click(objectsender,EventArgse){ intnum1=100;intnum2=100; if(object.Equals(num1,num2)){MessageBox.Show("Equal");//输出Equal;}else{MessageBox.Show("NotEqual");} Peoplep1=newPeople();Peoplep2=newPeople(); if(object.Equals(p1,p2)){MessageBox.Show("PersonEqual&qu 阅读全文
posted @ 2013-04-15 20:26 Predator 阅读(202) 评论(0) 推荐(0) 编辑
摘要: stringname="ganquanfu";stringtemStr=name.Substring(0);intcount=Encoding.Default.GetByteCount(temStr);MessageBox.Show(count.ToString());//输出9 阅读全文
posted @ 2013-04-15 19:23 Predator 阅读(187) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Drawing; namespaceTestMyControls{///<summary>///XQ:ComboBoxTreeView///</summary>publicclassMyComboBoxTreeView:ComboBox{privateListBoxlistBox=null;//设置变量,用来保存传进来的ListBox对象的值 阅读全文
posted @ 2013-04-15 19:19 Predator 阅读(324) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 63 下一页