1、5000汉字,2800单词,14000英文字符华北科技学院毕业设计 (论文 ) - 1 - 外文科技资料翻译 英文原文 Design Patterns in C # A model is a program using such a program, we can complete certain tasks. A model is a way through this way, we can achieve a certain purpose. Meanwhile, a model is a technology. In order to complete a par
2、ticular job, we need to access and use the technology effectively. This kind of thinking can be applied to many types of work, such as : cooking, pyrotechnic, software development and other work. If the work Township respective fields is not of sound, then the practitioners in the field will be to f
3、ind some common, effective solutions, using these programs, not in the circumstances to resolve the relevant issues, complete the work so as to achieve the purpose. Certain areas of regular employees in the field will have a habit of terminology These habits contribute to the terms of the work relat
4、ed personnel exchanges. Some models customary terms. The so-called model is able to complete some specific task and reach the goal of the mission off-the-shelf technology. With a habit of technology and related terms, some of this technology and modes documented, These records document from the cust
5、omary terms to be standardized and made some effective technology has been widely disseminated. Christopher Alexander is that some of the best skills facts old road program modeled on the one of the pioneers. His research area is the architecture, not the software. In his new book, "A Pat
6、tern Language : Towns, Buildings, Construction book, "Alexander the construction of housing and urban building the successful model. Alexander's works have far-reaching effects, it also affects software fields. This Department has been able to make an impact in other areas, partly because t
7、he author has a unique purpose of the observation. You might think that the construction approach is aimed at "building design." But Alexander made clear, Application architecture model, which aims to serve the future to those living in these buildings or living in these cities peopl
8、e, make them feel comfortable and happy. Alexander's work showed that the model is a certain access and the exchange of technical knowledge in the field excellent way. He also pointed out that a reasonable understanding of a particular record and the object of the exercise is very crucial, this
9、requires philosophical thinking, also faced with unpredictable challenges. Software development groups have to have a model resonates, and published a large number of books to record the software development model. These books record the software process the best time, senior architecture and
10、software design category level, and and the pattern books are still published. If you need to choose the mode of translation of the books, Youshould 华北科技学院毕业设计 (论文 ) - 2 - first take some time to read those to the secretary of the published comments, and then from the translation of choice for your
11、help greatest books, and as your 2020. Abstract, a kind of interface is the kind of certain methods and fields consisting of a pool. Other examples of the object can be set right through this class for a visit. Excuse the expression usually implementation of the method of operation for the fun
12、ctional responsibility, which often means using the name, code Notes and other documents for descriptive. Category 1 refers to the realization of the type of method to achieve code. C # language to improve the interface concept, so that it can be a separate structure, thereby interface (namely
13、 : an object must do what) and the realization (that is : a target how to meet their functional responsibilities) to effectively separate areas. C # language interface to allow for more than one category with a functional, and the C # interface can achieve more than one type interface. There a
14、re several design patterns can be used for the C # features. For example : we can use an interface to fit a certain type of interface, In reality, this is through the application adapter mode to meet a customer's needs. To discuss some language C # unable to complete the work, we should understa
15、nd how the C # language is the work performed, Therefore, we first discuss the C # language interface. If you do not use interface, then you can use the abstract class (C + + language abstract). However, the n layer (n-tier) software development and definition of structure and other objects, t
16、he interface has a critical role to play. Similarly, if you do not use commissioned, then you can use the interface. If a public mandate required to be registered for a callback method, then the commission could improve these mandates, and therefore C # Entrusted language is a very useful content. &
17、nbsp;1 Interface and abstract category Please indicate the C # language and abstract category of the three interfaces between different. In use, failed to provide a method of non-abstract category with an abstract interface is similar. However, we need to pay attention to the follo
18、wing points : A class can achieve any number of interfaces, but only up to an abstract category of sub-categories. An abstract class can include abstract, and an interface all methods in effect are abstract. An abstract class can declare and use variables, and not an interface. An
19、abstract category of the visit Xiuchifu can be public, internal, protected, protected internal or private, and members of the interface visit Xiuchifu in default under are public, but, 华北科技学院毕业设计 (论文 ) - 3 - in a statement Interface members, allowed to use the visit Xiuchifu (even allowed to use pub
20、lic visit Xiuchifu). An abstract class can be defined Constructors, and not an interface. 2 Interface with the commissioning Interface with the commissioning of comparison : Interface with the commissioning of the similarities is that they can have the desired definition of t
21、he function. We learn in the process of commissioning often create some confusion and the reason was partly due to "trust" the word It can express meaning is nuanced different concepts. The right to commission and compare interface, we have to take a look at the C # language commission is
22、how to work. C # language keyword delegate introduction of a new type of commission, This new type commissioned determine what type of method can be used only example of this type of commission. Commissioned no standard type of name, but it standardized the method parameter types and return ty
23、pes. We consider the following statement : Public delegate object BorrowReader ( IDataReader reader); This statement of the Declaration of a new type of commission.Commissioned by the name of the type BorrowReader. The statement said the commission can use any type of technique is, as lo
24、ng as the method of receiving a IDataReader object as a method parameters, and return types of methods to object. If a certain category is the following : Pricate static object GetNames (IDataReader reader) / GetNames () method parameter types and return types to meet BorrowRead
25、er commissioned by the types of standardized definition, this method can be used to name the types commissioned example, Examples of the statement is as follows : Is a variable b BorrowReader commissioned by the types of examples. Any visit to the commission examples of code can be called Obje
26、ct b, then commissioned example of the calling object b inclusive approach. The reason why the use of object example b, as this program has the following advantages : other ways in the right time calling object b and an inclusive approach. For example : a category of data services available to read on a database, called a BorrowReader commissioned example (that is, the above reader transmitted to the commission examples), then read this database as a resource for the release.