2010年12月27日

C# Excel 编程

摘要: private _Workbook _workBook = null;private Worksheet _workSheet = null;private Excel.Application _excelApplicatin = null;_excelApplicatin = new Excel.Application();_excelApplicatin.Visible = true;_excelApplicatin.DisplayAlerts = true;_workBook = _excelApplicatin.Workbooks.Add(XlSheetType.xlWorksheet 阅读全文

posted @ 2010-12-27 22:23 Chicano 阅读(831) 评论(0) 推荐(0)

c# 对数组清零

摘要: 对数组清零以下是几种方法:1.利用Array数组的Clear方法:Array.Clear(Array array,int index,int length)2.重新分配 ,快但有点浪费资源byte []array = new byte[1024];array=new byte[1024];string [] a;a=new string[]{}; 3.string[] a=new string[5]; a[1]="hello"; a=null; 阅读全文

posted @ 2010-12-27 17:40 Chicano 阅读(10112) 评论(0) 推荐(1)

导航