摘要: 引自:msdn http://msdn.microsoft.com/zh-cn/library/d5x73970.aspxConstraints on Type Parameters (C# Programming Guide)When you define a generic class, you can apply restrictions to the kinds of types that client code can use for type arguments when it instantiates your class. If client code tries to ins 阅读全文
posted @ 2011-07-24 13:52 higirle 阅读(327) 评论(0) 推荐(0) 编辑
摘要: http://www.dofactory.com/Patterns/PatternSingleton.aspxhttp://www.cnblogs.com/xun126/archive/2011/03/09/1970807.htmlC#设计模式学习笔记-单例模式 最近在学设计模式,学到创建型模式的时候,碰到单例模式(或叫单件模式),现在整理一下笔记。 在《Design Patterns:Elements of Resuable Object-Oriented Software》中的定义是:Ensurea class only has one instance,and provide a g.. 阅读全文
posted @ 2011-07-24 12:20 higirle 阅读(207) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/qingxia/category/277351.htmlC#语言Question from one example in Item 5 《Effective C#》 摘要: 1. Customer.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace CSharp{ class Customer:IFormattable { public string Name { get; set; } public decima 阅读全文
posted @ 2011-07-24 10:38 higirle 阅读(159) 评论(0) 推荐(0) 编辑
摘要: [转载].NET程序员应该知道些什么http://www.builder.com.cn/2008/0227/743313.shtml.NET牛人应该知道些什么? 任何一个使用.NET的人 描述线程与进程的区别? 什么是Windows服务,它的生命周期与标准的EXE程序有什么不同 Windows上的单个进程所能访问的最大内存量是多少?它与系统的最大虚拟内存一样吗?这对于系统设计有什么影响? EXE和DLL之间的区别是什么? 什么是强类型,什么是弱类型?哪种更好些?为什么? PID是什么?在做系统的故障排除时如何使用它? 单个TCP/IP端口上能够侦听多少个进程? 什么是GAC?它解决了什么问题? 阅读全文
posted @ 2011-07-24 10:36 higirle 阅读(181) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/wl98766789/archive/2010/09/08/1821080.htmlC# string 特殊的引用类型 .Net 框架程序设计(修订版)中有这样一段描述:String类型直接继承自Object,这使得它成为一个引用类型,也就是说线程上的堆栈上不会驻留有任何字符串。(译注:注意这里的“直接继承”。直接继承自Object的类型一定是引用类型,因为所有的值类型都继承自System.ValueType。值得指出的是System.ValueType却是一个引用类型)。 一:Code highlighting produced by Actip 阅读全文
posted @ 2011-07-24 10:31 higirle 阅读(276) 评论(0) 推荐(0) 编辑