1、区别 

List<T>:只能存放同一类型的元素 .

        ArrayList:存放任何类型,没有约束 。

2、性能

        List<T>在创建的时候的时间消耗上明显比ArrayList要大。
        List<T>对值类型操作不需要进行装箱ArrayList需要,数据量大的时候ArrayList耗性能。 

posted @ 2012-02-07 17:25 汉城 阅读(4) 评论(0) 编辑
1、打开ActiveSync ,点击“文件”——>“连接设置”,在“允许连接到以下其中一个端口”下选择“DMA”。


2、打开 VS2005,点击菜单“工具”——>“设备仿真管理器”,选择一个windows mobile 5.0 PocketPC 模拟器。在右键菜单中点击“连接”。等模拟器启动后,再点击“插入底座”,此时,通过ActiveSync来连接到模拟器,并进行数据同步。


3、在模拟器中,点击“开始”——>“设置”,点击“连接”选项卡。
(1)选择“网卡”:
“我的网卡连接到”选“默认单位设置”。
在“点击适配器以修改设置:”下面选“AsyncMac NDISWAN Miniport”,选中“使用服务器分配的IP地址”,点击右上角的“ok”,提示“新设置将在下次使用适配器时应用。如果适配器当前插在设备中,请先移除,然后重新插入适配器以应用设置。”,点击“ok”,“ok”。
(2)在“连接”选项卡中选择“连接”:
在“高级”选项卡中,点击“选择网络”,在“在程序自动连接到Internet时,使用:”下面选“单位设置”,默认是“Internet设置”,然后,连续点击右上角的“ok”,“ok”,“X”返回。
4、此时,就可以上网了。依次点击“开始”——>“Internet Explorer”——>“收藏夹”——>“MSN Mobile”,就会出现页面了。如还打不开网页,可在“设备仿真器管理器”中选中该模拟器,先点击右键菜单中的“移除底座”,再点击“插入底座”,重新与ActiveSync连接一次,就没问题了。

 

 

windows mobile web server 问题
localhost.WS_MobileMaster wsMobileMaster = new localhost.WS_MobileMaster();
//wsMobileMaster.Url = "http://计算机名称:1047/WebService/WS_MobileMaster.asmx";
wsMobileMaster.Url = "http://PC-201002200910:1047/WebService/WS_MobileMaster.asmx";
ds 
= wsMobileMaster.GetUserMaster();

 

 

posted @ 2010-03-25 10:46 汉城 阅读(582) 评论(1) 编辑

系统类

Type类,Object类,String类, Arrary类,Console类, Exception类,GC类, MarshalByRefObject类, Math类。

DateTime结构,Guid 结构,

     ICloneable接口,IComparable接口,IConvertible接口, IDisposable类, 

集合类

     ICollection接口,IComparer接口,IDictionary接口。IDictionaryEnumerator接口 ,IEnumerable接口,

      IEnumerator接口,IHashCodeProvider接口,IList接口,

     Stack 类,Queue类 ArraryList类,Hashtable类,SortedList类 CollectionBase类,DictionBase类

     DictionEntry结构。 

输入输出

 字节流

  Stream类,BufferedStream类,FileStream类,MemorStream类

二进制I/O

BinaryReader类,BinaryWriter类。

字符I/O

     TextReader类,TextWriter类,StreamReader类,StreamWriter类,StringReader类,StringReader类,StringWriter类。

I/O枚举

FileAccess枚举,FileAttributes枚举,FileMode枚举,FileShare枚举。

文件系统操作类

FileSystemInfo类 Directory类,Directoryinfo类 ,File类,Fileinfo类 

反射

        应用程序层次结构类

  Assembly类,Module类, 

成员信息类

     Memberinfo类,MethodBase类,ConstructorInfo类,EventInfo类

  MainifestResourceInfo类 Methodinfo类,ParameterInfo类,propertyInfo类 

       SystemReflection的其他成员, 

 Binder类,BindingFlags枚举 IReflect枚举 Pointer类 

文件操作

  Encoding类 ,AscIIEndoing类,UnicodeEncoding类,

 UTF7Encoding类 UTF8Encoding类,Decoder类

 StringBuilder类 

正则表达式

Capture

CaptureCollection

Group

Match类 MatchCollection类

Regex

RegexOptions枚举

多线程

Thread类,Monitor类,WaitHandle类,Mutex类 ReaderWriterLock类。ThreadPool类,Timeout类,

InterLocked类,

ThreadStart委托、

ThreadPriority枚举,ThreadState枚举,

posted @ 2010-03-25 09:02 汉城 阅读(107) 评论(0) 编辑

 

 1 using System.Data.SqlServerCe;
 2 
 3  
 4 
 5 SqlCeConnection _conn= new SqlCeConnection("DataSource=mobile.sdf");
 6 SqlCeDataAdapter da= new SqlCeDataAdapter("select * from user", conn);
 7 DataTable dt = new DataTable();
 8 sada.Fill(dt);
 9 dataGrid1.DataSource = dt;
10 

 

 

让 初学者 少走弯路。。。

posted @ 2010-03-23 09:44 汉城 阅读(321) 评论(0) 编辑

 

BORDER-TOP:0px;
BORDER-BOTTOM:0PX;
BORDER-LEFT:0px;
BORDER-RIGHT:0px

posted @ 2010-01-02 08:37 汉城 阅读(163) 评论(0) 编辑

<appSettings>
    <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
    <add key="FCKeditor:UserFilesPath" value="~/Upload/"/>
  </appSettings>

posted @ 2009-10-15 14:33 汉城 阅读(265) 评论(0) 编辑
摘要: @"Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Path + ";" + "Extended Properties='Excel 8.0;HDR=Yes;IMEX=1;'";阅读全文
posted @ 2009-10-14 17:56 汉城 阅读(181) 评论(0) 编辑
摘要: 首先引入类库,Microsoft.Office.Interop.Word,然后进行编程。代码如下: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System...阅读全文
posted @ 2009-10-13 12:58 汉城 阅读(92) 评论(0) 编辑
摘要: 解决方法一: 控制面板-》管理工具-》组件服务-》计算机-》我的电脑-》DCom配置-》找到Microsoft Word文档 之后 单击属性打开此应用程序的属性对话框。? 2. 单击标识选项卡,然后选择交互式用户。 3.单击"安全"选项卡,分别在"启动和激活权限"和"访问权限"组中选中"自定义",然后 自定义-...阅读全文
posted @ 2009-10-13 12:55 汉城 阅读(161) 评论(0) 编辑
摘要: select ceiling(48/10.00)  等于 5阅读全文
posted @ 2009-10-12 17:02 汉城 阅读(99) 评论(0) 编辑