- 博客(27)
- 资源 (18)
- 收藏
- 关注
转载 .NET 反射代码
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Reflection;namespace 反射{ class Program { static void Main(strin
2012-03-23 13:54:52 335
原创 WPF通过样式实现空值ToolTipe不显示
NullOrEmptyConverter 类 public class NullOrEmptyConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
2012-03-20 10:35:59 2240
转载 Volatile 线程安全的单例模式
using System;public sealed class Singleton{ private Singleton(){} private static volatile Singleton instance; private static object syncRoot = new object(); public static S
2012-03-15 16:03:06 2394
原创 类型 和返回值 的一个问题
看到了一个问题:public static IList a(){ b=new List(); return b;}这里不是返回一个List, 而是IList接口是什么意思呢? 也可以理解为 定义了一个object返回类型的方法,返回值为string类型的List 继承了IList接口为了帮助理解和相关延伸:写了如下代码:interface IWor
2012-03-15 14:55:14 377
原创 WPF项目通过ClickOnce部署,访问资源时路径莫名的多了一个Data目录
近来,发布好的WPF的项目本地运行一切正常,可是通过ClickOnce部署之后访问资源文件,路径上莫名的多了一个Data目录:Path=C:\Users\***\AppData\Local\Apps\2.0\*******\Data\dat\EPCData.sdf资源文件放在程序目录下的dat文件夹内数据库配置:不同的配置,DataDirectory的值有差异,可以添加
2012-03-14 08:55:32 995
原创 WPF访问控件的父控件并且修改属性
private void expander1_Expanded(object sender, RoutedEventArgs e) { Expander ed = sender as Expander; Grid grid = ed.Parent as Grid; if (grid != null)
2012-03-05 09:58:02 2592
原创 【设计模式】之 Strategy 策略模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.Strategy{ /// /// 策略模式 /// class
2012-03-05 09:43:26 362
原创 【设计模式】之 Template 模板方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.OleDb;namespace DesignFactory.Template{ /// /// 模板方法模式
2012-03-05 09:42:33 323
原创 【设计模式】之 Visitor 观察者模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.Visitor{ /// /// 访问者模式 /// class
2012-03-05 09:41:28 376
原创 【设计模式】之 Observer 观察者模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.Observer{ /// /// 观察者模式 /// class
2012-03-05 09:40:34 236
原创 【设计模式】之 Command 命令模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.Command{ class CommandPattern { }
2012-03-05 09:39:13 324
原创 【设计模式】之 Chain of Responsibility 职责链模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DesignFactory.ChainOfResponsibility{ /// /// 责任链模式 /// class ChainOfRespon
2012-03-05 09:37:34 287
原创 【设计模式】之 Bridge 桥梁模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.Bridge{ /// /// 桥梁模式 /// class Br
2012-03-05 09:36:31 333
原创 【设计模式】之 Facade 门面模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DesignFactory.Facade{ /// /// 门面模式 /// class FacadePattern { }
2012-03-05 09:35:31 283
原创 【设计模式】之 Flyweight享元模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.Flyweight{ /// /// 享元模式 /// class
2012-03-05 09:34:36 247
原创 【设计模式】之 Proxy 代理模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.Remoting;namespace DesignFactory.Proxy{ /// /// 代理模式 /// 利用远程代理模式提供
2012-03-05 09:33:27 276
原创 【设计模式】之 Decorator 装饰模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.Decorator{ /// /// 装饰模式 /// abstr
2012-03-05 09:29:10 269
原创 【设计模式】之 Composite 合成模式
. using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory{ /// /// 合成模式 /// 基本图像元素 直线 圆 //
2012-03-05 09:28:11 312
原创 【设计模式】之 Adapter 适配器模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DesignFactory.Adapter{ /// /// 适配器模式 /// public interface ICar {
2012-03-05 09:26:11 265
原创 【设计模式】之 Prototype 原型模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.Prototype{ /// /// 原型模式 /// 类,通过实现IClon
2012-03-05 09:24:35 222
原创 【设计模式】之 Builder 建造者模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.Builder{ /// /// 建造者模式 /// clas
2012-03-05 09:23:25 208
原创 【设计模式】之 Singleton 单例模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;using System.Threading;namespace DesignFactory.Singleton{ class Singleto
2012-03-05 09:22:07 219
原创 【设计模式】之 Abstract Factory 抽象工厂
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DesignFactory.AbstractFactory{ /// /// Herbivore: 草食动物 /// Carnivore: 食肉动物
2012-03-02 16:05:21 232
原创 【设计模式】之 Factory Method 工厂方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace DesignFactory.FactoryMethod{ #region Product /// //
2012-03-02 16:01:35 228
原创 【设计模式】之 Simple Factory 简单工厂
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DesignFactory{ /// /// 简单工厂 /// public abstract class Light {
2012-03-02 15:59:04 236
Spring.NET + NHibernate + ASP.NET MVC + jQuery + easyUI
2016-07-20
项目开发各阶段文档模板
2016-06-13
.NET Reactor
2015-12-14
EditPlus.rar
2011-12-14
log4net.dll
2011-12-14
Prismv4.exe
2011-12-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人