
C#高级语法
Kirin0007
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C#测试代码执行效率的3种方式
1.Stopwatch类原创 2014-07-02 11:16:00 · 2099 阅读 · 0 评论 -
CRC-16校验 C#
using System; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization.Formatters.Binary; using System.IO; namespace smsForCsharp.CRC { ///原创 2014-05-12 17:55:46 · 1443 阅读 · 0 评论 -
获取网页中的所有超链接
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Net;using Sys原创 2014-04-08 14:44:24 · 2595 阅读 · 0 评论 -
C#委托之 Action<T>委托
ActionT> 委托封装一个方法,该方法只有一个参数并且不返回值。命名空间: System程序集: mscorlib(在 mscorlib.dll 中)public delegate void Actionin T>( T obj)可以使用 ActionT> 委托以参数形式传递方法,而不用显式声明自定义的委托。 封装的方法必须与此委托定义的方法签名相对应。 也就是原创 2014-03-10 10:11:10 · 1569 阅读 · 0 评论 -
C# 委托之 用委托实现事件 三枪控件
using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;name原创 2014-03-10 09:48:07 · 787 阅读 · 0 评论 -
C# 委托之 事件 三枪控件2 2014-03-10 09:48 阅读(0) 评论(0) 编辑 删除
using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;namespac原创 2014-03-10 09:52:13 · 824 阅读 · 0 评论 -
C#事件之 发布符合 .NET Framework 准则的事件
下面的过程演示了如何将符合标准 .NET Framework 模式的事件添加到您的类和结构中。 EventHandler delegate, which is defined as follows:" data-guid="7381964ce2595960b13411f64eee6823">.NET Framework 类库中的所有事件均基于 EventHandler 委托EventHan原创 2014-03-08 18:15:40 · 925 阅读 · 0 评论 -
委托之使用委托
1.delegate is a type that safely encapsulates a method, similar to a function pointer in C and C++." data-guid="4c1918af86104acb3cb0880cef46f9c0">委托是一种安全地封装方法的类型,它与 C 和 C++ 中的函数指针类似。 与 C 中的函数指针不同,委托原创 2014-03-08 11:49:24 · 1025 阅读 · 0 评论 -
C# 事件 之订阅和取消订阅事件
class or object to notify other classes or objects when something of interest occurs." data-guid="b50a703c5eb39f63e1c9da6922bb7bb2">类或对象可以通过事件向其他类或对象通知发生的相关事情。 raises) the event is called the publis原创 2014-03-08 16:22:42 · 4664 阅读 · 1 评论 -
c# 自定义事件和委托
在windows 编程中用到最多的就是控件的时间了,微软给我们很好的方式,把注意力放到事件执行方法的设计和编码上,但是但我们真正弄懂了事件的真正出发执行原理的话,对我们的编程的提高真是非常榜的,例如在windows编程中 如果我单击了一个button按钮触发了button 的click事件 Button1_Click(){} , 但是有时候我们编程的时候,不但想要触发button 的单击事件,原创 2014-03-08 10:29:41 · 850 阅读 · 0 评论 -
C#反射机制介绍
2009-12-21 来自:网上整理 字体大小:【大中 小】 摘要:本文介绍C#反射机制,包括反射的作用、应用要点和反射的一些常用的方法。反射的定义:审查元数据并收集关于它的类型信息的能力。元数据(编译以后的最基本数据单元)就是一大堆的表,当编译程序集或者模块时,编译器会创建一个类定义表,一个字段定义表,和一个方法定义表等。System.原创 2014-08-26 09:35:43 · 815 阅读 · 0 评论