需要配合window的安装程序一起写using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Diagnostics;using System.Li...
using System;using System.Collections.Generic;using System.Text;namespace HelloWorld{ class Program { static void Main(string[] args) ...
分类:
其他好文 时间:
2014-07-23 15:01:46
阅读次数:
155
我们知道对于class和struct都可以定义构造函数,而构造函数又有实例构造函数和静态构造函数。实例构造函数在每次实例化时,都会执行一次。那静态构造函数是否如此呢?我们先来看一段代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Thread...
分类:
其他好文 时间:
2014-07-23 13:20:16
阅读次数:
198
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Drawing;namespace WindowsFormsApplicati...
分类:
其他好文 时间:
2014-07-23 11:49:06
阅读次数:
199
using System;using System.Collections.Generic;using System.Linq;using System.Text;using WindowsFormsApplication3.Model;using WindowsFormsApplication3....
分类:
其他好文 时间:
2014-07-23 11:47:46
阅读次数:
160
using System;using System.Collections.Generic;using WindowsFormsApplication3.Utility;using WindowsFormsApplication3.Model;namespace WindowsFormsApplic...
分类:
其他好文 时间:
2014-07-23 11:47:26
阅读次数:
163
工厂模式和简单工厂有什么区别。废话不多说,对比第一篇例子应该很清楚能看出来。优点: 工厂模式弥补了简单工厂模式中违背开放-封闭原则,又保持了封装对象创建过程的优点。using System;using System.Collections.Generic;using System.Linq;usin...
分类:
其他好文 时间:
2014-07-23 11:46:36
阅读次数:
188
using System;using System.Collections.Generic;using System.Linq;using System.Text;using WindowsFormsApplication3.Utility;using System.Drawing;using Sy...
分类:
其他好文 时间:
2014-07-23 11:45:26
阅读次数:
390
using System;using System.Collections.Generic;using System.Linq;using System.Text;using WindowsFormsApplication3.Model;using WindowsFormsApplication3....
分类:
其他好文 时间:
2014-07-23 11:45:06
阅读次数:
191
using System;using System.Collections.Generic;using System.Linq;using System.Text;using WindowsFormsApplication3.Enums;namespace WindowsFormsApplicati...
分类:
其他好文 时间:
2014-07-23 11:41:56
阅读次数:
215