05 2007 档案

摘要:codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace AlgorithmBase ... 阅读全文
posted @ 2007-05-21 11:18 南守拥 阅读(429) 评论(2) 推荐(0)
摘要:/Files/nanshouyong326/identityFinally.rar 阅读全文
posted @ 2007-05-18 17:28 南守拥 阅读(783) 评论(6) 推荐(0)
摘要:一般的类Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 public class myRectangle 2 { 3 public double with; 4 public double length; ... 阅读全文
posted @ 2007-05-18 10:22 南守拥 阅读(323) 评论(0) 推荐(0)
摘要:codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 Assert.IsFalse(object.ReferenceEquals(10, 10));//比较时,要把比较的东西Box成Object,二个Ojbec地址是不一样... 阅读全文
posted @ 2007-05-18 09:04 南守拥 阅读(602) 评论(0) 推荐(0)
摘要:codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 object o1 = null;2 object o2 = null;3 object o3 = new object();... 阅读全文
posted @ 2007-05-18 09:01 南守拥 阅读(342) 评论(0) 推荐(0)
摘要:codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5using Microsoft.VisualSt... 阅读全文
posted @ 2007-05-17 16:22 南守拥 阅读(248) 评论(0) 推荐(0)
摘要:/Files/nanshouyong326/ProducerConsumerQuestion.rar 阅读全文
posted @ 2007-05-16 13:59 南守拥 阅读(288) 评论(0) 推荐(0)
摘要:You need to interface with a record structure in a traditional programming environment. Make a dumb data object for the record. 阅读全文
posted @ 2007-05-15 17:08 南守拥 阅读(199) 评论(0) 推荐(0)
摘要:A method returns a collection. Make it return a read-only view and provide add/remove methods. 阅读全文
posted @ 2007-05-15 17:06 南守拥 阅读(309) 评论(2) 推荐(0)
摘要:There is a public field. Make it private and provide accessors. 阅读全文
posted @ 2007-05-15 16:55 南守拥 阅读(197) 评论(0) 推荐(0)
摘要:You have a literal number with a particular meaning. Create a constant, name it after the meaning, and replace the number with it. 阅读全文
posted @ 2007-05-15 16:48 南守拥 阅读(228) 评论(0) 推荐(0)
摘要:You have a two-way association but on class no longer needs features from the other. Drop the unneeded end of the association. 阅读全文
posted @ 2007-05-15 16:47 南守拥 阅读(239) 评论(0) 推荐(0)
摘要:You have two classes that need to use each other’s features, but there is only a one-way link. Add back pointers, and change modifiers to update both sets. 阅读全文
posted @ 2007-05-15 16:45 南守拥 阅读(278) 评论(0) 推荐(0)
摘要:You have domain available only in a GUI control, and domain methods need access. Copy the data to a domain object. Set up an observer to synchronize the two pieces of data. 阅读全文
posted @ 2007-05-15 16:44 南守拥 阅读(285) 评论(0) 推荐(0)
摘要:You have an array in which certain elements mean different things. Replace the array with an object that has a field for each element. 阅读全文
posted @ 2007-05-15 16:42 南守拥 阅读(215) 评论(0) 推荐(0)
摘要:You have a reference object that is small, immutable, and awkward to manage. Turn it into a value object. To convert this to a value object, the key thing to do is verify that the object is immutabl... 阅读全文
posted @ 2007-05-15 16:42 南守拥 阅读(271) 评论(0) 推荐(0)
摘要:You have a class with many equal instances that you want to replace with a single object. Turn the object into a reference object. 阅读全文
posted @ 2007-05-15 16:41 南守拥 阅读(194) 评论(0) 推荐(0)
摘要:You have a data item that needs additional data or behavior. Turn the data item into an object. 阅读全文
posted @ 2007-05-15 16:40 南守拥 阅读(200) 评论(0) 推荐(0)
摘要:You are accessing a field directly, but the coupling to the field is becoming awkward. Create getting and setting methods for the field and use only those to access the field. 阅读全文
posted @ 2007-05-14 21:58 南守拥 阅读(197) 评论(0) 推荐(0)
摘要:/Files/nanshouyong326/ThreadInAsp.net.rar 阅读全文
posted @ 2007-05-14 17:30 南守拥 阅读(267) 评论(0) 推荐(0)
摘要:codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections; 3using System.Collections.Generic; 4 5class Progra... 阅读全文
posted @ 2007-05-11 11:22 南守拥 阅读(206) 评论(0) 推荐(0)
摘要:LinkedList and LinkedListNode Class Diagram codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3cl... 阅读全文
posted @ 2007-05-11 10:04 南守拥 阅读(176) 评论(0) 推荐(0)
摘要:Queue and Queue Class DiagramsUsing it. codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3class... 阅读全文
posted @ 2007-05-11 09:47 南守拥 阅读(171) 评论(0) 推荐(0)
摘要:Stack and Stack Class DiagramsUsing it. codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3class ... 阅读全文
posted @ 2007-05-11 09:41 南守拥 阅读(170) 评论(0) 推荐(0)
摘要:SortedList and SortedDictionary Class DiagramsUsing SortedDictionary codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System... 阅读全文
posted @ 2007-05-11 09:28 南守拥 阅读(198) 评论(0) 推荐(0)
摘要:Dictionary and Hashtable Class DiagramsAdding Items to a Dictionary codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2 using Sy... 阅读全文
posted @ 2007-05-11 09:24 南守拥 阅读(253) 评论(0) 推荐(0)
摘要:List and ArrayList Class DiagramsUsing the Bit Complement of the BinarySearch() Result 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using Syste... 阅读全文
posted @ 2007-05-10 17:23 南守拥 阅读(405) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Threading; 3using System.ComponentModel; 4using System.Text; 5 6... 阅读全文
posted @ 2007-05-10 16:38 南守拥 阅读(289) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.IO; 3using System.Runtime.Remoting.Messaging; 4using System.Collec... 阅读全文
posted @ 2007-05-10 15:40 南守拥 阅读(858) 评论(1) 推荐(0)
摘要:/Files/nanshouyong326/EnumeratorComposite.rar 阅读全文
posted @ 2007-05-09 16:13 南守拥 阅读(221) 评论(0) 推荐(0)
摘要:SetCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections; 3namespace Utilities 4{ 5 /**//// 6 /// Provide a... 阅读全文
posted @ 2007-05-09 10:41 南守拥 阅读(218) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections; 3using System.Collections.Generic; 4using System.Com... 阅读全文
posted @ 2007-05-08 20:04 南守拥 阅读(467) 评论(0) 推荐(0)
摘要:myClassCollectionCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1public class myClassCollection : IEnumerable 2 { 3 [Filed]#region [Filed]... 阅读全文
posted @ 2007-05-08 17:55 南守拥 阅读(322) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Collections.Generic; 3using System.ComponentModel; 4using System.Data;... 阅读全文
posted @ 2007-05-08 10:17 南守拥 阅读(964) 评论(0) 推荐(0)