随笔分类 - C#学习
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Refle...
阅读全文
摘要:System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Collections; using System.Collections.Generic; using System.Data.Common; using System.Xml; namespace co...
阅读全文
摘要:using System; using System.Collections; using Excel=Microsoft.Office.Interop.Excel; namespace WindowsApplication1 { /// /// 对Excel进行操作的类。 /// publ...
阅读全文
摘要:在线转换: 地址为: http://www.developerfusion.com/tools/convert/csharp-to-vb/
阅读全文
摘要:刚开始接触c#操作excel可能会不知从哪着手,但或许又急需写一个能实现excel自动化的程序,我把必要的步骤和一些最简单的常用操作写在下面,希望能帮到一些网友。 适用于:windows office 2003,visual c# 2008。其他版本可能需要略作改变。 首先 添加引用,方法:项目->添加引用->选择COM项->Microsoft Excel 11.0 Object Library ...
阅读全文
摘要:C#中virtual 与 override 在C#中,如果你在声明一个方法的时候用了virtual这个关键字,那么,在派生类中,你就可以使用override或者new关键字来弃用它或是忽略它.如果你在父类中用了virtual这个关键字,而在其派生类中又没有用override或new关键字,而直接引用一个同名方法的话,编译器将会报错,并将以new方式,即忽略派生类中的方法的方式来运行.下面的例子可...
阅读全文
浙公网安备 33010602011771号