代码改变世界

阅读排行榜

委托理解

2012-09-24 18:18 by hongjiumu, 272 阅读, 收藏,
摘要: 委托在本质上是一个类,我们用delegate关键字声明的所有委托都继承自System.MulticastDelegate。后者又继承自System.Delegate类,System.Delegate类则继承自System.Object。委托既然是一个类,那么它可以被定义在任何地方,既可以定义在类的内部,也可以定义在类的外部。正如很多资料上所说的,委托是一种类型安全的函数回调机制,它不仅能够调用实例方法,也能调用静态方法,并且具备按顺序执行多个方法的能力。由于委托继承自System.MulticastDelegate类,自然也继承MulticastDelegate类的字段、属性和方法。这些成员中 阅读全文

(转)颠覆你对方法调用的看法!

2013-10-19 11:08 by hongjiumu, 270 阅读, 收藏,
摘要: 颠覆你对方法调用的看法!http://www.cnblogs.com/francisYoung/p/3371106.html注意:如果你是一个初学者,对实例方法,虚方法的调用还不太清楚,强烈建议你不要阅读本文,因为这里面的代码会让你完全崩溃掉。如果你对实例方法,虚方法的运行机制已经了如指掌,并且,对方法和对象的内存布局也心中有数,那么本文可能会颠覆你以前对他们的认识。阅读本文的最佳方式就是亲自演练一下,如果看完之后有疑惑,那么是正常的,但是稍加思考就会想明白。我说,string变量可以直接引用一个object对象!我说,派生类型的变量可以直接引用基类型的对象!你会说,老兄,别开玩笑了,派生类型 阅读全文

console调用plugin

2013-04-20 22:44 by hongjiumu, 268 阅读, 收藏,
摘要: 插件设计using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms; namespace ConsoleApplication1{ class Program { private static string _vsPath = @"D:\work\0411\test\Solution2\WindowsFormsApplicationTest\bin\Debug\WindowsFormsApplicationTes... 阅读全文

字符定位

2012-12-24 23:30 by hongjiumu, 268 阅读, 收藏,
摘要: private void SetPositionReference(string input) { _vdPostionReference.Clear(); int currentIndex = 0; char currentChar; int iStartIndex = 0, iEndIndex = 0; string tempColumnName = string.Empty; int iColumnIndex = 0; w... 阅读全文

PDF

2013-07-11 22:39 by hongjiumu, 259 阅读, 收藏,
摘要: Converting PDF to Text in C#http://www.codeproject.com/Articles/12445/Converting-PDF-to-Text-in-CPDF File Analyzer With C# Parsing Classeshttp://www.codeproject.com/Articles/450254/PDF-File-Analyzer-With-Csharp-Parsing-ClassesPDF文件格式分析http://www.2cto.com/Article/201011/77380.html 阅读全文
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 42 下一页