(According to the msdn webcast courses)
The object state changes without reason. How can we trace back or restore the state of these objects at a certain point?
Gof: capture the internal state of an object without compromising the object
(According to the msdn webcast courses)
Classes in hierarchies may often become vulnerable by introducing new operations (Virtual methods.
If it is a hierarchy chart of class inheritance relationships,
If a virtual method is directly added to
For multiple reasons, I did not find the source. The following is only a record
C # from 1.1 to 2.0 and then to 3.0, many fans are ecstatic about its new features. In fact, most of them are just doing some retro sports.
C # 1.x basically copied
The with Keyword of VB (VB.net) is not only reducedCodeRedundancy is highly related to the structure, scope, and compiler code optimization.
This does not need to be said about code redundancy.
However, for structural, scope, and compiler
(According to the msdn webcast courses)
Dependency inversion principle:
Abstraction should not depend on implementation details, but on abstraction. Implementation Details are often changeable.
Abstract A directly depends on implementation
(According to the msdn webcast courses)
Take a look at the following instances:
Customer calls in the solution on the leftProgramIt has many coupling and interaction with the specific implementation classes within the subsystem. Obviously, this is
(According to the msdn webcast courses)
Change is an eternal topic in software design. How can we manage the complexity brought about by changes? The artistic and complexity of the design pattern lies in how to analyze and discover changes and
(According to the msdn webcast courses)
There is often a coupling relationship between object and behavior operations.
The behavior requestor uses a "command" to execute certain behaviors.
Gof: encapsulate a request into an object so that we can
(According to the msdn webcast courses)
Intermediary mode dependency:
Multiple objects are closely related to each other. When an object changes, multiple objects may change accordingly. When an intermediate object is used, the object is not saved
First, select system. Management in add reference.
Then start the Department:
Using system. Management;
Using system. Management. instrumentation;
Private void getinfo ()
{
String cpuinfo = ""; // CPU serial number
Managementclass
Many times we write a custom control (after compilation) and drag it to the form to load it, but sometimes we may not want this
However, setting designmodel = true is often invalid.
So we choose to process it like thisPublic usercontrol1 (){
Event Notification is the best solution. I used a while (XXX) to wait. Later I found some problems:
Using
System;
Using
System. text;
Using
System. Windows. forms;
Using
System. Threading; namespace windowsapplication1 {
Questions from shuimu BBS
1. What are the differences and links between the following two definitions and initialization:Char PCH [] = "Hello World ";Char * STR = "Hello World ";2. Where are the static keywords used?3. In a typical system, such as
Excel supports many formats (DBF, TXT ...).
If possible, no one wants to use Excel DLL to open the application development method.
Text separated by commas, spaces, and Tab keys can be opened in Excel.
However, I used streamwriter (C #2.0, vs2005)
In terms of personal emotional experience,C #It is the best language in form.(If a language does not have formal aesthetic characteristics and has no metaphysical imaginary beauty, no matter how applicable it is, it is only a method of making use of
(According to the msdn webcast courses)
There are 23 common design patterns, which can be divided into three types: Creation (5), structure (7), and behavior (11.
Test the following scenarios: when a user subscribes to a text message, email, or
(According to the msdn webcast courses)
Suppose that the tanks in the game are not only different in types, but may also be different in the same tank. For example, we may want to increase (expand) the number of tanks for a certain type, such as T5
When you study C # In actual work, you may ask: why do we need to provide some existing functions (for example, some functions in windows, some methods that have been compiled in C ++) to rewrite Code , C # Is there a way to directly use these
(According to the msdn webcast courses)
Coupling directly determines the behavior of the software in the face of changes.
When the coupling is tight, when a module changes, the relevant modules must be changed accordingly; the dependency is
Finally, I listened carefully to Anders hejlsberg (one of the designers of technical fellow in Visual Studio) "The future of C #" (http://channel9.msdn.com/pdc2008/TL16/) on pdc08 ).
Looking back at the development history of C #, C #1.0
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service