




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、附录1 英文文献翻译1. 英文1.1 introuction to c#1.1.1 the birth of c#as a recent birth in the programming language family# has two programming language parents+ and java# contains many c+ features but also adds the object-oriented features from java.c# contains many different components, including:l versioning
2、support, so that your base and derived classes-templates that define how an object performsremain compatible as you develop them l events, so that your program can notify clients of a class about something that has happened to an object l type safety and verification that increases reliability and e
3、nsures code securityl garbage collection, so that your program can identity objects that your program can no longer reachl unsafe mode, where you can use pointers to manipulate memory outside the garbage collectors control, including methods and properties 1.1.2 close relations with c and c+c# is bu
4、ilt on the c+ language, so it behaves much like the language. like c+, c# lets you write enterprise applications, and c# contains many c+ features, including statements and operators. c# also provides access to common application program interface (api) styles including component object model (com)
5、and c-style apis.1.1.3 securitycomputer networks let programmers share visual studio.net code including c# programs across the network .this collaborative effort lets you and your programming team create c# programs much more quickly than one person alone. the problem with collaborating over a netwo
6、rk is that unauthorized users from within or outside your network may try to gain access to your c# program code.visual studio.net provides built-in security features so you or the leader of your programming team can determine who on your network gets access to your c# program code and resources. yo
7、u can also set different levels of security for different people in case you want only certain people to have access to certain program code.1.1.4 integrationthe primary advantage of using visual studio.net is that all of the programming languages have been designed to work together from the start.
8、when you write a new c# program, visual studio.net gives you tools that you can use to program links from your c# program into another program written in another visual studio.net language.for example, you can create a database in visual foxpro and then create a c# program that links into the visual
9、 foxpro database. if you have written or acquired completed programs in a visual studio language such as visual c+ or visual basic, you can include links from your c# program into those programs. the end result is seamless integrated functionality between programs.1.1.5 differences between c# and c+
10、microsoft includes visual c+ and c# in visual studio .net. on the surface# has few differences from visual c+. when you look carefully and start programming, you will notice that c# differs in several important respects from visual c+:l c# has an alternate method of accessing the c+ initialization l
11、ist when constructing the base class.l a class can inherit implementation from only one base class.l you can call overridden base class members from derived classes.l c# has a different syntax for declaring c# arrays.l there are differences in several different types including bool, struct, and dele
12、gate.l the main method is declared differently.l support of the new ref and out method parameters that are used instead of pointers for passing parameters by reference.l new statements including switch and finally.l new operators including is and typeof.l different functionality for some operators a
13、nd for overloading operators.1.1.6 dllsthe advent of windows brought dynamic link libraries (dlls) to programmers. dlls are small, independent programs that contain executable routines that programs can use to produce a certain result in windows. for example, if a program needs to open a file, you c
14、an write your c# program that uses the code in the dll to open the file. using dlls frees up your time to work on your program without having to reprogram the same code in your c# program over and over again.you can access dlls from your c# program, and create dlls in c# for your c# for your c# prog
15、ram to refer to when necessary. c# has full com/platform support, so you can integrate c# code with any programming language that can produce com dlls such as visual c+.1.1.7 xmlextensible markup language (xml) is a more powerful version of hyper text markup language (html), the standard web page la
16、nguage. visual studio.net and c# let you document your program using xml and then extract the xml code into a separate file.visual studio.net supports xml so that you can integrate your c# programs with the world wide web. you can document your c# code using xml and then use xml for creating web ser
17、vices and web controls that let you and your code interact with a web site. for example, you may have an inventory system written in c# that interacts with the order-taking page on your companys web site.1.2 start visual studio.netvisual studio.net contains a graphical programming environment called
18、 the microsoft development environment (mde). the mde enables you to create programs in visual c# and other visual studio.net languages.when you start visual studo.net, the mde window appears with several windows within the mde windows. in the largest area of the mde window, which is called the pare
19、nt window, the visual studio start page appears. the start page lists any recent projects and provides two buttons so that you can open a project file or create a new project.the start page lets you log into the microsoft developers network (msdn) web site directly from the mde, so you can receive t
20、he latest information from microsoft about visual studio, get technical help from fellow visual studio users at microsofts online forum, and search for information online.visual studio.net also lets you create and change your profile so that can view windows, enter keyboard commands, and receive hel
21、p for the programming language in which you are working .for example , if you have used an older version of visual studio in the past and you prefer to use the old windows and keyboard commands, visual studio lets you use visual basic and c+ windows and menus.1.3 open a new c# project after you star
22、t the mde windows , you can open a new project .a project contains all the files related to your c# program. after you determine the type of c# program you want to write, visual studio creates all of the project files you need to start programming. visual studio contains programs. the mde window let
23、s you create eight different projects so you can tailor your c# program to the needs of your program users. you can create three different application types, each with a different user interface. first, you can create a windows application that has a graphical, form-based interface. you can create a
24、 console application with a characterbased interface. finally, you can create a web application that resides on a web server and uses web pages for its interface.you can create three types of programs that are not full-fledged but provide components that other programs can use. first ,you can create
25、 a class library program so you can provide class for other programs. second, you can create a windows control library for creating form controls such as buttons. third, you can create a web control library program that provides web controls for your web-based c# programs. when the open project wind
26、ow appears, it shows all the projects in the default project folder, my projects. by clicking one of the icons on the left side of the project location window, you can choose the folder from which a project is opened.in the project location windows, you can also select any folder on your hard drive
27、by clicking the down arrow next to the look in field and then selecting your drive. the folders on the selected drive appear in the window.1.4 exploring the c# interfacewhen you start a new c# project, c# creates default classes that define and categorize the elements in your new program. for exampl
28、e, if you start a new program .for example, if you start a new windows application that has objects. the class view window lets you view all your classes and their related components so you knew exactly what is in your class code without having to search through the code.the class view window gives
29、you a convenient way to see with which class an object in your program is associated without having to close or minimize your program code or form. the class view window appears in the same space in the microsoft development environment window as the solution explorer window.the class information ap
30、pears in a tree format that you can expand to view all classes associated with a particular program component, such as a form. if you have more than one program in a project, the class view window tree lets you access classes for all the programs in the project.if you want to see classes that meet c
31、ertain criteria, you can sort classes in the tree alphabetically, by type for viewing related classes in your program, or by access.if the class view window is not available as a tab at the bottom of the solution explorer window, you can access the class view window from the menu bar.you can open th
32、e class view window by clicking view and then class view on the menu. you can also open the class view window by pressing ctrl+shift+c. no matter if you access the class view window using the menu or the keyboard, after you open the class view window, it replaces the solution explorer in the upper-r
33、ight corner of the parent window.when you click a class, the properties for that class appear in the properties window; the properties window appears below the class view window.if you do not have the properties window open, you can right-click the class and then click properties from the pop-up men
34、u. 1.5 view the contents windowthe microsoft development environment (mde) window provides several different types of online visual.net documentation, including the contents window. when you access the contents window, the window appears in the same space as the solution explorer window. if you have
35、 used windows online help before, then the contents windows will be very familiar to you.as you expand the tree, specific topics appear, enabling you to select your topic from this list. many help pages also contain links to other help pages, in case you need related information.the filtered by drop
36、-down list at the top of the contents window lets you filter the type of information displayed in the tree. if you want to view only c# information, the contents window tree will display those groups and topics that pertain only to c#.with some topics, the contents window may not be able to display
37、the full names of the topics. the mde window provides two ways to scroll through the entire topic name so you can determine if that is a topic you want more information about.first, you can click the horizontal scrollbar at the bottom of the contents window. this lets you view the entire window. sec
38、ond, you can move the mouse pointer over the topic name will appear in a white box above the mouse pointer. the second option does not work if the name of the topic is too long.2. 中文2.1 c# 简介2.1.1 c#的诞生作为一个在编程语言家族中新发展出来的语言,c编程语言中,我们可以很容易的看到c+ +和java语言的影子。c#包含了许多c + +的功能,而且也包含了面向对象语言如java的一些特征。 c中也包含
39、许多不同组件,包括: versioning support, so that your base and derived classes-templates that define how an object performsremain compatible as you develop them 版本支持,这样您己定义的模板的执行时所用到的基类和派生类,仍兼容你开发的程序。 events, so that your program can notify clients of a class about something that has happened to an object 事件,
40、让您的程序可以通知一个类的对象,告诉它某些事件被触发。 type safety and verification that increases reliability and ensures code security 安全的类型和验证,提高可靠性,并确保代码的安全性 。 garbage collection, so that your program can identity objects that your program can no longer reach 垃圾自动收集,使您的程序不必再去查找垃圾对象。 unsafe mode, where you can use pointers
41、 to manipulate memory outside the garbage collectors control, including methods and properties 不安全的模式,在这里您可以使用指针、方法和属性来操作内存外的垃圾收集器来控制内存。2.1.2 与c和c+的密切关系c是建立在c + +语言上的,所以它们的行为是非常类似的语言。像c+,c中,您可以编写企业应用程序并且c包含了许多c+功能,包括报表和操作系统。c# also provides access to common application program interface (api) styles
42、 including component object model (com) and c-style apis.c还提供了访问常用应用程序接口(api)api的风格,包括com组件和api样式表。2.1.3 安全计算机网络让程序员共享visual studio.net代码,包括c网络程序。通过这种方式的合作,让您和您的编程团队创c项目时速度远远超过一个人的效率。未经授权的用户the problem with collaborating over a network is that unauthorized users from within or outside your network m
43、ay try to gain access to your c# program code.通过网络与您合作时的问题是可能会从内部或外部尝试进入你c程序源代码。 visual studio.net provides built-in security features so you or the leader of your programming team can determine who on your network gets access to your c# program code and resources. visual studio.net则提供了内置的安全功能,这样你或者
44、是你编程团队的领导人就可以决定谁能在网络上获得进入你的c程序代码和资源的权力。you can also set different levels of security for different people in case you want only certain people to have access to certain program code.您还可以为不同的人设置不同程度的权限,你也可以实现让某些人获得特定的程序代码。 2.1.4 集成使用visual studio.net时的主要优点是,在编程时所有语言都被设计为一个整体。when you write a new c# p
45、rogram, visual studio.net gives you tools that you can use to program links from your c# program into another program written in another visual studio.net language.当你写一个新的c程序时,visual studio.net为您提供了工具,您可以将您写的c#语言程序链接到另一个visual studio.net程序中。 for example, you can create a database in visual foxpro an
46、d then create a c# program that links into the visual foxpro database. 例如,您可以使用visual foxpro创建一个数据库,然后创建一个能够链接到visual foxpro数据库的c程序。if you have written or acquired completed programs in a visual studio language such as visual c+ or visual basic, you can include links from your c# program into those
47、programs.如果你使用visual studio中的visual c + +或visual basic语言完成了或计划完成这个项目,那么你可以在c程序中将这些链接集成到那些项目中。the end result is seamless integrated functionality between programs.最终的结果是程序之间的无缝集成的功能。 2.1.5 c# 与c+间的区别在visual studio.net中,微软包括了visual c + +和c。on the surface# has few differences from visual c+. 从表面上看c和c+差
48、不多。when you look carefully and start programming, you will notice that c# differs in several important respects from visual c+: 当你仔细观察,并开始编程时,你会发现, c和visual c+有几个很多不同点: c# has an alternate method of accessing the c+ initialization list when constructing the base class. 当创建一个基类时,c有替代方法去访问c+初始化列表。 a c
49、lass can inherit implementation from only one base class. 一个类只能从一个基类中继承或实现。 you can call overridden base class members from derived classes. 你可以调用派生类成员重写基类。 c# has a different syntax for declaring c# arrays. c中有一个不同的语法来声明数组。 there are differences in several different types including bool, struct, an
50、d delegate. 有几个不同类型,包括布尔型、结构体,委托。 the main method is declared differently. 主方法的声明是不同的。 support of the new ref and out method parameters that are used instead of pointers for passing parameters by reference. 支持新的ref和out参数的方法引用,而不必通过指针实现参数的传递。 new statements including switch and finally. 新的关键字,包括exter
51、n 和static。 new operators including is and typeof. 新的声明,包括是switch 和finally。 .新的运算符,包括is 和typeof。usr different functionality for some operators and for overloading operators. 为一些运算符和重载运算符编写的不同功能。2.1.6 动态链接库 windows的出现为程序员带来了动态链接库(dll)。dll是小,可以利用这些独立的包含可执行例程的程序通过windows产生某种效果。for example, if a program
52、needs to open a file, you can write your c# program that uses the code in the dll to open the file. 例如,如果一个程序需要打开一个文件,你可以在你的c程序中使用dll来打开该文件。 using dlls frees up your time to work on your program without having to reprogram the same code in your c# program over and over again. 使用dll可以释放出时间去运行您的解决方案,而
53、不必在你的c程序中一遍又一遍地编写相同的代码you can access dlls from your c# program, and create dlls in c# for your c# for your c# program to refer to when necessary.。您可以从您的c#程序去访问dll文件,并且在你有需要时为你的c程序创建dll。c# has full com/platform support, so you can integrate c# code with any programming language that can produce com d
54、lls such as visual c+.c中得到com /平台的充分支持,所以你可以使用任何编程语言与c#代码相结合,并能产生com dll,如visual c+。 2.1.7 可扩展标记语言可扩展标记语言(xml)是一个(html)增强版的超文本标记语言,是一种标准的网页语言。 使用xml文件能够使从visual studio.net and c# let you document your program using xml and then extract the xml code into a separate file.visual studio.net和c程序中提取xml代码到
55、一个独立的文件中。 visual studio.net supports xml so that you can integrate your c# programs with the world wide web. visual studio.net中支持xml,以便您可以整合您的c程序与网页语言。 you can document your c# code using xml and then use xml for creating web services and web controls that let you and your code interact with a web s
56、ite. 您可以用xml语言记录你的c代码,然后使用xml创建web服务和web控件,让您和您的代码实现一个网站的交互。for example, you may have an inventory system written in c# that interacts with the order-taking page on your companys web site.例如,您可能有一个用c#编写的库存系统,这个系统可以在你公司的网页上打印订单。2.2 启动visual studio.netvisual studio.net中包含一个图形化编程环境,称为microsoft开发环境(mde)
57、。the mde enables you to create programs in visual c# and other visual studio.net languages.mde使您能够使用visual c#和visual studio.net中的其他语言开发程序。 when you start visual studo.net, the mde window appears with several windows within the mde windows. 当您启动visual studo.net时,在mde窗口内出现多个mde窗口。visual studio启动页面中窗口面
58、积最大的称in the largest area of the mde window, which is called the parent window, the visual studio start page appears. the start page lists any recent projects and provides two buttons so that you can open a project file or create a new project.为父窗口。起始页列出所有最近打开过的项目,并提供两个按钮,以便您可以打开一个项目文件或创建一个新的项目。 the
59、start page lets you log into the microsoft developers network (msdn) web site directly from the mde, so you can receive the latest information from microsoft about visual studio, get technical help from fellow visual studio users at microsofts online forum, and search for information online. 开始界面中,您可以直接从mde
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 辞职报告怎样写好(4篇)
- 企业年会演讲稿600字(33篇)
- 以《认识月球》教学进行教研反思
- 幼儿园老师开学典礼园长国旗下讲话稿(4篇)
- 五年级品德与社会下册 第一单元 成长的快乐与烦恼 1《生活中的快乐》教学设计 新人教版
- 新学期演讲稿范文(15篇)
- 《电子票据业务分析与应用》课件
- 全国清华版信息技术小学五年级上册新授课 第2课 新春快乐 -制作逐帧动画 教学设计
- 《时尚品牌市场调研》课件
- 五 校园安全电子眼 安全宣传靠大家(教学设计)粤教版三年级下册综合实践活动
- 《大学生美育》 课件 第七章 艺术美
- 2024年巴西兽医快速诊断市场机会及渠道调研报告
- 2024年云南省中考数学试题含答案
- 网课智慧树知道《人工智能引论(浙江大学)》章节测试答案
- 场地使用免责协议
- 基于PLC的全自动洗衣机控制系统设计答辩稿课件
- 大数据概论期末试题及答案
- 热工基础课后答案超详细版(张学学)
- 广东省深圳市深圳高级中学2023-2024学年下学期期中测试八年级数学试题
- 成年身份证号码大全
- 4.4运用循环结构描述问题的求解过程课件粤教版高中信息技术必修1
评论
0/150
提交评论