首Html代码

学有所用,不然就失去意义。

子标题

导航

04 2011 档案

在 Visual C# .NET 中实现自定义集合
摘要:View Code usingSystem;usingSystem.Collections;classTempClass{publicclassCustomCollection:ICollection{privateint[]intArr={1,5,9};privateintCt;publicCustomCollection(){Ct=3;}voidICollection.CopyTo(ArraymyArr,intindex){foreach(intiinintArr){myArr.SetValue(i,index);index=index+1;}}IEnumeratorIEnumerable 阅读全文

posted @ 2011-04-22 10:23 tssing 阅读(422) 评论(0) 推荐(0)

OPCDAAuto.dll 连接小结
摘要:MyItem=newOPCItem[10];MyServer=newOPCAutomation.OPCServer();objectaopcserver=MyServer.GetOPCServers();for(inti=1;i<((Array)(aopcserver)).Length;i++){listBox1.Items.Add(((Array)(aopcserver)).GetValue(i));}MyServer.Connect(listBox1.Items[0].ToString(),"");MyGroup=MyServer.OPCGroups.Add(&q 阅读全文

posted @ 2011-04-17 22:56 tssing 阅读(3503) 评论(0) 推荐(0)

页脚Html代码