-------------------------------------statement------------ ------------------------ Domestic general contact .NET is approximately November 2001, Microsoft officially released VS.NET. (Remember not Clearly) Although, the D version of the VS of the D version was long, I couldn't stand the temptation. I have read a lot of relevant books for a while. Net brought a lot of at least a new operation on the Windows series platform. And development technology set. In particular, the WebService = SOAP (HTTP New Data Storage Format XML) Windows System support WebService service and client (different from traditional meaning) API set in architecture For personal opinions, WebService is a DCOM system-based architecture that can be replaced by Microsoft. Take D-DBS architecture, the unity of XML data format has brought great benefits. Solutions based on DCOM In the process of DBS-> Network -> DBS, data should be constantly transformed. And data streams are often influenced by the route. However, I feel that the development support of WebService is not enough. Maybe my love for COM technology. Although many MSs have never been touched by the development plan of the system. Then it is a huge change in the development platform. The first is the emergence of CLR, which makes it hopes for the portability of the commercial system. It is because of CLR, I am. For a while, I even took the center of gravity, even if the global buffer was configured even if the program was developed. It is not as smooth as the native code. I didn't have Java, but it seems to be famous. And the other The eye-catching is: C #: C # is indeed a very advanced language. Very powerful. Compared to other traditional languages C, C , is a very pure object-oriented language. and semantic support. this is even really appreciate ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ unlike C process, C multi-model, like Java, but I think it is absolutely strong than Java (Java lovers don't want!). At the end of 2001, I wrote a one in my own knowledge. "Net development and operation platform, architecture campus information system", dug in front of the previous time, and the eggs and stones that have attracted 9CBS, of course, some people have explained it. For a long time, it is useless .NET See Xiaoyan. Net version seems to have a lot of just contact. NET's classmates, I think: I have read the book when I study it. I have a hard work. Here you collect the C design pattern of yourself, and use C # to write to the other hand, it is convenient for students. On the other hand, you will take a revision. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 不 贴 贴 贴 贴 贴 贴 贴 贴 贴Rewinding an article, the post is also unregified. There are time and necessary to comment in detail, even if it will be annotated.
-------------------------------------------------- -------------------------------------------------- ----
Name: Singleton Chinese Name: Single Type: Created Description: Generally used to ensure uniqueness of the Class object within the global scope. For this problem, the best solution is to achieve the characteristics of Class itself, not right Customers have made requirements, lack of security. Program: [c #] // created on 2003-3-11 AT 15: 32using system; class _singleton {private _singleton ()} public static _singleton createInstance () {if (singleleton_instance_ref == null) {singleton_instance_ref = new _singleton ();} return singleton_instance_ref;} private static _singleton singleton_instance_ref = null;} class _singleton_test {public static void Main () {_singleton ref_singleton = _singleton.createinstance (); _singleton ref_singleton_ = _singleton.createinstance () IF (Ref_Singleton.equals) Console.Writeline ("Hello, We Ref the Same Space In the Memory);}} Review: 1. Take advantage of: Static and Private Features PUBLIC and Static ensure that CreateInstance generates objects Global. 2.Private and Static modified Singleton_instance_ref ensures that it can be called by the Static member function of Class inside. Security Get a guarantee. 3.singleton_instance_ref's dependency and certain global, guaranteed superior Variable Solution. (In fact, C # does not support traditional concepts in traditional concepts in C, C .).) Because C # everything is centered or centered. 4. The object's generation is even, in support global variable C Among them, this solution is significantly better than defining global variables. 5. Personally think that C # is clearly divided into reference and numerical type (also dynamically allocated), which is really reasonable. About the reference, it can be said to be modern C obvious Application trend. It avoids inconvenience of pointers, inherits features for large object refusal values. 6. Garbage recycling mechanisms have also shown advantage here. Extended: 1. In the IF statement in this system, You can see if there is a big design flexibility here. 2. For Static, C # joined the usage of unmodified static constructs. That is the traditional language that has a language-oriented characteristic.
-------------------------------------------------- -------------------------------------------------name : Bridges: Bridge Type: Structural Description: Generally used to separate interfaces to implement and abstract. To ensure the low coupling of the system. This system is easy to expand. It eliminated a simple implementation inherited in multi-function system Solution of the mid-off plate. And due to the characteristics of Bridge itself, it is easy to combine other modes. Program: [C #] // create on 2003-3-12 at 9: 08using system; class abstract {public void _operation ) {! if (imp_ptr = null) imp_ptr.implementor ();}} interface implementor {void implementor ();} class concreteiml_a:. implementor {public void implementor () {Console.WriteLine ( "I am _a I hava been implemented . ");}} class concreteiml_b: implementor {public void implementor () {Console.WriteLine (".. I am _b I have been imlemented ");}} class ts_bridge {public static void Main () {abstraction _bridge = new Abstractor IMPL_A = New ConcreteIml_a (); importor ipl_b = new constreiml_b (); _ bridge._operation (IMPL_A); _ bridge._operation (IMPL_B);}} Review: 1. First it uses C # to object design concept The original support Interface. C #, Interface defaults to public inheritance. And inherited Class's implementation of the interface function must be P Ublic, it does not support modification. For this issue, I believe that from grammar, it is better to understand from semantics, because the intersection is used to inherit the implementation of the Class, if the support declaration is apparent, it is obvious, The INTERFACE in the default public inheritance is supported by the INTERFACE. 2. A core problem of this mode: It supports support with the virtual function mechanism in C , ie dynamic networking. Do not talk This mechanism is easy to understand, which is definitely a place worthy of any program enthusiasts, which is really exquisite design. 3. Quote and numerical types of features. Extension: 1. You will find that the structure here is Simple, reflected in the Class level structure level and simple member relationship. In fact, due to the low coupling of Biridge, combined with abstract factory to control the behavior of ConcreteImplmentor is the longest, 2.c # Interface and Abstract Class difference. ---------------------------------------------------------------------------------------------------------------------------- ----------------------- Statement: