- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 new operator
在一个方法前面加new 操作符是违背OO的思想的,不过面试的人可能会问到。例如: BaseClass ab =new SubClass(); ab.MethodA(); //MethodA 是 BaseClass中的virtual 方法,在SubClass中被override。 此时调用的是BaseClass中的方法而不是子类中的。 SubClass su=new SubCl
2013-06-27 18:06:09 507
原创 26进制转换
一道面试题: Convert an integer to a string following the rule of : 1-> A 2-> B ... 26-> Z 27-> AA 28-> AB ...
2013-06-27 16:36:57 767 1
原创 C#读取Excel文件
1. OleDb方式 [using System.Data.OleDb] Office 2007及以上版本需要使用"Microsoft.ACE.OLEDB.12.0" 的连接字符串,Office 2003及以下版本需要使用"Microsoft.Jet.OLEDB.4.0"。public IList LoadExcelFile(string excelFileName)
2013-06-24 14:07:53 635 1
原创 BackgroundWorker
BackgroundWorker的事件响应函数:private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { BackgroundWorker worker = sender as BackgroundWorker; demoProcess =
2013-06-14 10:27:28 588
转载 5个免费的英语听力网站
ESLPOD.com (大量免费的听力内容,涵盖日常生活、托福词汇、美国文化介绍等。难度:初级-中级)TrueValueEnglish.com (专为英语学习者准备的每日一词、英语发音纠正、美国俚语、托福词汇精讲、影视花絮、名人访谈等栏目。难度:中级-高级)betteratenglish.com (内容偏口语化,生活化,定期提供免费的podcast及对应的文字介绍。难度:初级-中级)c
2013-06-07 23:06:56 1182 1
原创 把Collection转化为XML
IList sources = sourceFileLocation.Split(semicolonSeparater, StringSplitOptions.RemoveEmptyEntries).ToList();XElement satFiles = new XElement("Files", from f in sources select new X
2013-06-07 14:52:53 716 2
转载 规则动词的过去式及发音规则
规则动词的过去式词尾变化有几种: 1.一般情况下加ed,如watched, planted, watered, pulled, climbed, picked。 2.以不发音字母e结尾的加d,如liked, moved, tasted。 3.以辅音字母加y结尾的变y为i再加ed,如study——studied。 4.以1个元音字母加1个辅音字母结尾的重读闭音节,双写最后一个
2013-06-04 17:34:19 6081
原创 To doing
1. look forward to doing 期待做某2. object to 反对,抗议 If she does not object to it, why should we?3. be used to 习惯于 The paper then considers whether antitrust law canbe used to correct the
2013-06-02 23:03:19 892 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人