- 博客(8)
- 资源 (8)
- 收藏
- 关注
转载 谈谈C#里面的Delegate
Delegate在.NET中其实是个非常重要的概念,在.NET中使用到Delegate的地方有很多,比如将函数作为参数传递给其他函数,事件处理,以及异步方法的实现。 从本质上说,我们可以将Delegate理解成一个安全的函数指针或者函数指针数组的的概念。 之所以说Delegate是函数的指针,是因为通过创建一个Delegate类型之后,就可以通过这个Delegate来获得函数(方法
2007-03-27 12:05:00 2786
转载 C#实现Singleton
您要在 C# 中构建应用程序。您需要只有一个实例的类,并且需要提供一个用于访问实例的全局访问点。您希望确保您的解决方案高效,并且能够利用 Microsoft? .NET 公共语言运行库功能。您可能还希望确保解决方案是线程安全的。实现策略尽管 Singleton 是一种相对简单的模式,但是存在与具体实现有关的不同权衡因素和选项。下面是一组实现策略,及其优缺点的讨论。Singleton
2007-03-21 11:09:00 1015
转载 DataGridViewPrinter
using System;using System.Text;using System.Collections;using System.Collections.Generic;using System.Drawing;using System.Drawing.Printing;using System.Data;using System.Windows.Forms;public class
2007-03-20 18:05:00 1291
转载 Check your Internet Connection with C#
How to check if your computer is connected to the internet with C#. Its much more easier that other tutorials Ive seen in other sites. In deed, were going to use a simple API function InternetGetCo
2007-03-20 11:26:00 918
转载 关于线程的参数、“返回值”、及线程的中止
关于线程的参数(2.0)、“返回值”、及线程的中止1.线程的参数:示例: private void btRunThread_Click(object sender, EventArgs e) { Thread t = new Thread(new ParameterizedThreadStart(this.ThreadRu
2007-03-20 11:05:00 767
转载 Visual C#常用函数和方法集汇总
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4
2007-03-20 10:57:00 676
转载 ClickOnce集锦
1、clickonce初级编http://hi.baidu.com/assembly_cs/blog/item/1a0ddd39abee2ef33b87cea8.html2、如何让ClickOnce进行手动更新http://ugvanxk.blogchina.com/5097419.html3、clickonce的高级应用http://hzpal.com/Discuss/DotNet/463.as
2007-03-20 10:51:00 1049
转载 C#中读写ini文件
using System;using System.Runtime.InteropServices;using System.Text; namespace Ini...{ /**//// /// Create a New INI file to store or load data /// public class IniFile ...{ p
2007-03-19 09:47:00 801
UML基础与Rational Rose 2003建模教程(2)
2008-04-23
UML基础与Rational Rose 2003建模教程(1)
2008-04-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人