Gkptwt畢業(yè)論文外文翻譯_第1頁
Gkptwt畢業(yè)論文外文翻譯_第2頁
Gkptwt畢業(yè)論文外文翻譯_第3頁
已閱讀5頁,還剩12頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、作者:日期:生命是永恒不斷的創(chuàng)造 , 因為在它內(nèi)部蘊含著過剩的精力,它不斷流溢,越出時間和空間的界限,它不停地追求,以形形色色的自我表現(xiàn)的形式表現(xiàn)出來。泰戈爾附件 1 :外文資料翻譯譯文ASP.NET 概述ASP NET是一個統(tǒng)一的 Web開發(fā)模型,它包括您使用盡可能少的代碼生成企業(yè)級 Web應(yīng)用程序所必需的各種服務(wù)。ASP.NET作為。NETFramework的一 部分提供。當(dāng)您編寫 ASP.NET 應(yīng)用程序的代碼時,可以訪問 .NET Framework 中 的類。您可以使用與公共語言運行庫 (CLR) 兼容的任何語言來編寫應(yīng)用程序的 代碼,這些語言包括 Microsoft Visual

2、Basic、C# JScript 。NET 和 J#。使 用這些語言,可以開發(fā)利用公共語言運行庫、類型安全、繼承等方面的優(yōu)點的 ASP。 NET 應(yīng)用程序。ASP。 NET 包括:? 頁和控件框架?ASP。 NET 編譯器? 安全基礎(chǔ)結(jié)構(gòu)? 狀態(tài)管理功能? 應(yīng)用程序配置? 運行狀況監(jiān)視和性能功能? 調(diào)試支持? XML Web services 框架? 可擴(kuò)展的宿主環(huán)境和應(yīng)用程序生命周期管理? 可擴(kuò)展的設(shè)計器環(huán)境ASP.NET頁和控件框架是一種編程框架,它在Web服務(wù)器上運行,可以動態(tài) 地生成和呈現(xiàn) ASP.NET 網(wǎng)頁。可以從任何瀏覽器或客戶端設(shè)備請求 ASP.NET 網(wǎng) 頁,ASP NET會

3、向請求瀏覽器呈現(xiàn)標(biāo)記(例如 HTML .通常,您可以對多個瀏覽 器使用相同的頁,因為 ASP.NET 會為發(fā)出請求的瀏覽器呈現(xiàn)適當(dāng)?shù)臉?biāo)記 .但是, 您可以針對諸如 Microsoft In ternet Explorer 6的特定瀏覽器設(shè)計 ASP。NET 網(wǎng)頁,并利用該瀏覽器的功能 .ASP.NET 支持基于 Web 的設(shè)備(如移動電話、 手 持型計算機(jī)和個人數(shù)字助理(PDA)的移動控件。ASP.NET網(wǎng)頁是完全面向?qū)ο蟮?。?ASP。NET網(wǎng)頁中,可以使用屬性、方 法和事件來處理 HTML 元素。 ASP。 NET 頁框架為響應(yīng)在服務(wù)器上運行的代碼中 的客戶端事件提供統(tǒng)一的模型 , 從而使

4、您不必考慮基于 Web 的應(yīng)用程序中固有 的客戶端和服務(wù)器隔離的實現(xiàn)細(xì)節(jié)。 該框架還會在頁處理生命周期中自動維護(hù)頁 及該頁上控件的狀態(tài) .使用 ASP。 NET 頁和控件框架還可以將常用的 UI 功能封裝成易于使用且可 重用的控件??丶恍杈帉懸淮?,即可用于許多頁并集成到 ASP。 NET 網(wǎng)頁中。 這些控件在呈現(xiàn)期間放入 ASP。 NET 網(wǎng)頁中 .ASP.NET頁和控件框架還提供各種功能,以便可以通過主題和外觀來控制網(wǎng) 站的整體外觀和感覺。 可以先定義主題和外觀, 然后在頁面級或控件級應(yīng)用這些 主題和外觀。除了主題外 , 還可以定義母版頁,以使應(yīng)用程序中的頁具有一致的布局。一 個母版頁可以

5、定義您希望應(yīng)用程序中的所有頁 (或一組頁)所具有的布局和標(biāo)準(zhǔn) 行為。然后可以創(chuàng)建包含要顯示的頁特定內(nèi)容的各個內(nèi)容頁。 當(dāng)用戶請求內(nèi)容頁 時,這些內(nèi)容頁與母版頁合并, 產(chǎn)生將母版頁的布局與內(nèi)容頁中的內(nèi)容組合在一 起的輸出。所有 ASP.NET 代碼都經(jīng)過了編譯,可提供強(qiáng)類型、性能優(yōu)化和早期綁定以 及其他優(yōu)點 . 代碼一經(jīng)編譯,公共語言運行庫會進(jìn)一步將 ASP。 NET 編譯為本機(jī) 代碼,從而提供增強(qiáng)的性能。ASP.NET包括一個編譯器,該編譯器將包括頁和控件在內(nèi)的所有應(yīng)用程序組 件編譯成一個程序集,之后 ASP.NET 宿主環(huán)境可以使用該程序集來處理用戶請 求.除了 .NET 的安全功能外 ,A

6、SP.NET 還提供了高級的安全基礎(chǔ)結(jié)構(gòu),以便對 用戶進(jìn)行身份驗證和授權(quán), 并執(zhí)行其他與安全相關(guān)的功能。 您可以使用由 IIS 提 供的 Windows 身份驗證對用戶進(jìn)行身份驗證,也可以通過您自己的用戶數(shù)據(jù)庫 使用ASP.NET Forms身份驗證和ASP。NET成員資格來管理身份驗證。此外, 可以使用 Windows 組或您自己的自定義角色數(shù)據(jù)庫 ( 使用 ASP。 NET 角色)來管 理 Web 應(yīng)用程序的功能和信息方面的授權(quán)。您可以根據(jù)應(yīng)用程序的需要方便地 移除、添加或替換這些方案。ASP.NET始終使用特定的 Windows標(biāo)識運行,因此,您可以通過使用Windows功能(例如NTF

7、S訪問控制列表 (ACL)、數(shù)據(jù)庫權(quán)限等等)來保護(hù)應(yīng) 用程序的安全。ASP.NET提供了內(nèi)部狀態(tài)管理功能,它使您能夠存儲頁請求期間的信息,例 如客戶信息或購物車的內(nèi)容 .您可以保存和管理應(yīng)用程序特定、會話特定、頁特 定、用戶特定和開發(fā)人員定義的信息。此信息可以獨立于頁上的任何控件 .ASP.NET提供了分布式狀態(tài)功能,使您能夠管理一臺計算機(jī)或數(shù)臺計算機(jī)上同一 應(yīng)用程序的多個實例的狀態(tài)信息。通過 ASP.NET 應(yīng)用程序使用的配置系統(tǒng), 可以定義 Web 服務(wù)器、網(wǎng)站或單 個應(yīng)用程序的配置設(shè)置。您可以在部署 ASP。 NET 應(yīng)用程序時定義配置設(shè)置 , 并 且可以隨時添加或修訂配置設(shè)置,且對運行

8、的 Web 應(yīng)用程序和服務(wù)器具有最小 的影響。ASP.NET配置設(shè)置存儲在基于XML的文件中.由于這些XML文件是 ASCII 文本文件,因此對 Web 應(yīng)用程序進(jìn)行配置更改比較簡單。您可以擴(kuò)展配 置方案 , 使其符合自己的要求 .ASP.NET包括可監(jiān)視ASP.NET應(yīng)用程序的運行狀況和性能的功能。使用 ASP.NET運行狀況監(jiān)視可以報告關(guān)鍵事件,這些關(guān)鍵事件提供有關(guān)應(yīng)用程序的運 行狀況和錯誤情況的信息。 這些事件顯示診斷和監(jiān)視特征的組合, 并在記錄哪些 事件以及如何記錄事件等方面提供了高度的靈活性。ASP.NET支持兩組可供應(yīng)用程序訪問的性能計數(shù)器:ASP.NET系統(tǒng)性能計數(shù)器組? ASP

9、。 NET 應(yīng)用程序性能計數(shù)器組ASP.NET利用運行庫調(diào)試基礎(chǔ)結(jié)構(gòu)來提供跨語言和跨計算機(jī)調(diào)試支持.可以調(diào)試托管和非托管對象,以及公共語言運行庫和腳本語言支持的所有語言。此外,ASP NET頁框架提供使您可以將檢測消息插入 ASP.NET網(wǎng)頁的跟蹤 模式.ASP NET 支持 XML Web services。XML Web services 是包含業(yè)務(wù)功能的 組件,利用該業(yè)務(wù)功能,應(yīng)用程序可以使用 HTTP 和 XML 消息等標(biāo)準(zhǔn)跨越防火 墻交換信息。XMLWebservices不用依靠特定的組件技術(shù)或?qū)ο笳{(diào)用約定.因此, 用任何語言編寫、使用任何組件模型并在任何操作系統(tǒng)上運行的程序 , 都

10、可以訪 問 XML Web services 。ASP。 NET 包括一個可擴(kuò)展的宿主環(huán)境 , 該環(huán)境控制應(yīng)用程序的生命周期, 即 從用戶首次訪問此應(yīng)用程序中的資源 (例如頁) 到應(yīng)用程序關(guān)閉這一期間。 雖然 ASP。 NET 依賴作為應(yīng)用程序宿主的 Web 服務(wù)器 (IIS ),但 ASP.NET 自身也提 供了許多宿主功能。通過 ASP。 NET 的基礎(chǔ)結(jié)構(gòu) , 您可以響應(yīng)應(yīng)用程序事件并創(chuàng) 建自定義 HTTP 處理程序和 HTTP 模塊。ASP.NET中提供了對創(chuàng)建 Web服務(wù)器控件設(shè)計器(用于可視化設(shè)計工具,例 如 Visual Studio )的增強(qiáng)支持。使用設(shè)計器可以為控件生成設(shè)計時

11、用戶界面, 這樣開發(fā)人員可以在可視化設(shè)計工具中配置控件的屬性和內(nèi)容。C# 是一種簡潔、類型安全的面向?qū)ο蟮恼Z言,開發(fā)人員可以使用它來構(gòu)建在。NETFramework上運行的各種安全、可靠的應(yīng)用程序。使用C#,您可以創(chuàng)建傳統(tǒng)的 Windows 客戶端應(yīng)用程序、 XMLWebservices 、分布式組件、 客戶端 服務(wù)器應(yīng)用程序、數(shù)據(jù)庫應(yīng)用程序以及很多其他類型的程序。 Microsoft Visual C 2005 提供高級代碼編輯器、方便的用戶界面設(shè)計器、集成調(diào)試器和許多其 他工具,以在 C# 語言版本 2.0 和 .NET Framework 的基礎(chǔ)上加快應(yīng)用程序的 開發(fā).C# 語法表現(xiàn)力強(qiáng)

12、,只有不到 90 個關(guān)鍵字,而且簡單易學(xué)。 C 的大括號 語法使任何熟悉 C、 C+ 或 Java 的人都可以立即上手。 了解上述任何一種語言的開發(fā)人員通常在很短的時間內(nèi)就可以開始使用C #高效地工作.C#語法簡化 了 C+ 的諸多復(fù)雜性,同時提供了很多強(qiáng)大的功能,例如可為空的值類型、枚 舉、委托、匿名方法和直接內(nèi)存訪問,這些都是 Java 所不具備的。 C 還支持 泛型方法和類型,從而提供了更出色的類型安全和性能。 C# 還提供了迭代器, 允許集合類的實現(xiàn)者定義自定義的迭代行為,簡化了客戶端代碼對它的使用。作為一種面向?qū)ο蟮恼Z言, C 支持封裝、 繼承和多態(tài)性概念。 所有的變量 和方法,包括

13、 Main 方法(應(yīng)用程序的入口點),都封裝在類定義中。類可能直 接從一個父類繼承,但它可以實現(xiàn)任意數(shù)量的接口 . 重寫父類中的虛方法的各種 方法要求 override 關(guān)鍵字作為一種避免意外重定義的方式。在 C# 中, 結(jié)構(gòu)類 似于一個輕量類;它是一種堆棧分配的類型,可以實現(xiàn)接口 , 但不支持繼承。 除了這些基本的面向?qū)ο蟮脑恚?C 還通過幾種創(chuàng)新的語言結(jié)構(gòu)加快了軟件組 件的開發(fā),其中包括:? 封裝的方法簽名 ( 稱為委托) , 它實現(xiàn)了類型安全的事件通知。? 屬性 (Property), 充當(dāng)私有成員變量的訪問器。? 屬性 ( Attribute) ,提供關(guān)于運行時類型的聲明性元數(shù)據(jù) .

14、? 內(nèi)聯(lián) XML 文檔注釋。在 C 中,如果需要與其他 Windows 軟件(如 COM 對象或本機(jī) Win32 DLL)交互,可以通過一個稱為“ In terop ”的過程來實現(xiàn).互操作使C#程序能 夠完成本機(jī) C+ 應(yīng)用程序可以完成的幾乎任何任務(wù)。在直接內(nèi)存訪問必不可少 的情況下, C 甚至支持指針和“不安全”代碼的概念。C# 的生成過程比 C 和 C+ 簡單,比 Java 更為靈活.沒有單獨的頭文件, 也不要求按照特定順序聲明方法和類型。 C 源文件可以定義任意數(shù)量的類、 結(jié) 構(gòu)、接口和事件。C#程序在。NET Framework上運行,它是 Windows的一個必要組件,包 括一個稱為

15、公共語言運行時 (CLR) 的虛擬執(zhí)行系統(tǒng)和一組統(tǒng)一的類庫。CLR 是Microsoft 的公共語言基礎(chǔ)結(jié)構(gòu) (CLI) 的一個商業(yè)實現(xiàn)。 CLI 是一種國際標(biāo) 準(zhǔn),是用于創(chuàng)建語言和庫在其中無縫協(xié)同工作的執(zhí)行和開發(fā)環(huán)境的基礎(chǔ)。用C #編寫的源代碼被編譯為一種符合 CLI規(guī)范的中間語言(IL) oIL代 碼與資源(如位圖和字符串)一起作為一種稱為程序集的可執(zhí)行文件存儲在磁盤 上,通常具有的擴(kuò)展名為。exe或。dll.程序集包含清單,它提供關(guān)于程序集的 類型、版本、區(qū)域性和安全要求等信息.執(zhí)行C#程序時,程序集將加載到CLR中,這可能會根據(jù)清單中的信息執(zhí)行 不同的操作.然后,如果符合安全要求,CL

16、R執(zhí)行實時(JIT )編譯以將IL代碼 轉(zhuǎn)換為本機(jī)機(jī)器指令.CLR還提供與自動垃圾回收、異常處理和資源管理有關(guān)的 其他服務(wù)。由CLR執(zhí)行的代碼有時稱為“托管代碼",它與編譯為面向特定系統(tǒng) 的本機(jī)機(jī)器語言的“非托管代碼”相對應(yīng)。下圖演示了C#源代碼文件、基類庫、程序集和CLR的編譯時與運行時的關(guān)系.visual C*直目CLR IL無數(shù)據(jù)和引用.NET Framework語言互操作性是。NET Framework的一個關(guān)鍵功能。因為由C#編譯器生成的IL代碼符合公共類型規(guī)范(CTS),因此從C#生成的IL代碼可以與從VisualBasic、Visual C+、Visual J# 的。N

17、ET版本或者其他20多種符合CTS的 語言中的任何一種生成的代碼進(jìn)行交互。單一程序集可能包含用不同。NET語言編寫的多個模塊,并且類型可以相互引用,就像它們是用同一種語言編寫的。除了運行時服務(wù), .NET Framework 還包含一個由 4000 多個類組成的內(nèi)容詳盡 的庫,這些類被組織為命名空間, 為從文件輸入和輸出到字符串操作、 到 XML 分 析、到 Windows 窗體控件的所有內(nèi)容提供多種有用的功能。典型的 C# 應(yīng)用程 序使用。NET Framework類庫廣泛地處理常見的“日常”任務(wù)。附件 2 :外文原文ASP.NET OverviewASP。 NET is a unified

18、 Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is part of the .NET Framework, and when coding ASP。 NET applications you have access to classes in the .NET Framework. You can code your applications in an

19、y language compatible with the common language runtim(e CLR), including Microsoft Visual Basic, C#, JScript 。 NET, and J. These languages enable you to develop ASP.NET applications that benefit from the common language run time, type safety, in herita nee, and so or個人收集整理1勿做商業(yè)用途本文為互聯(lián)網(wǎng)收集,請勿用 作商業(yè)用途ASP

20、。 NET ineludes:? A page and eontrols framework?The ASP。 NET eompiler? Seeurity infrastrueture? State-management faeilities? Applieation eonfiguration? Health monitoring and performanee features? Debugging support? An XML Web serviees framework? Extensible hosting environment and applieation life eye

21、le management? An extensible designer environmentThe ASP.NET page and controls framework is a programming framework thatruns on a Web server to dyn amically produce and ren der ASP.NET Web pages. ASP NET Web pages can be requested from any browser or client devic,e and ASP.NET renders markup (such a

22、s HTML) to the requesting browser. As a rule, you can use the same page for multiple browsers, because ASP.NET renders the appropriate markup for the browser making the request However, you can design your ASP.NET Web page to target a specific browser, such as Microsoft Internet Explorer 6, and take

23、 advantage of the features of that browser ASP。NET supports mobile controls for Web-enabled devices such as cellular phone,s handheld computers, and personal digital assistants (PDAs)。 文檔為個人收集整理,來源于網(wǎng)絡(luò)個人收集整理 , 勿做商業(yè)用途ASP。 NET Web pages are completely object oriented. Within ASP。 NET Web pages you can

24、work with HTML elements using properties, method,s and events. The ASP。 NET page framework removes the implementation details of the separation of client and server inherent in Web-based applications by presenting a unified model for responding to client events in code that runs at the server. The f

25、ramework also automatically maintains the state of a page and the controls on that page during the page processing life cycle. 文檔為個人收集整理,來源于網(wǎng)絡(luò)文檔為個人收集整理,來源于網(wǎng)絡(luò)The ASP.NET page and controls framework also enables you to encapsulate common UI functionality in easytouse, reusable controls. Controls are w

26、ritten once, can be used in many pages, and are integrated into the AS。 PNET Web page that they are placed in during rendering。The ASPo NET page and con trols framework also provides features to con trol the overall look and feel of your Web site via themes and skins. You can define themes and skins

27、 and the n apply them at a page level or at a con trol levelIn addition to themes, you can define master pages that you use to create a consistent layout for the pages in your application. A single master page defines the layout and standard behavior that you want for all the pages(or a group of pag

28、es) in your application。 You can then create individual content pages that contain the page-specific content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page

29、個人收集整理勿做商業(yè)用途個人收集整理勿做商業(yè)用 途All ASP 。 NET code is compiled, which enables strong typing, performance optimizations, and early binding, among other benefits。 Once the code has been compiled, the com mon Ian guage run time further compiles ASP NET code to n ative code, providing improved performance。ASP.

30、NET includes a compiler that will compile all your application components including pages and controls into an assembly that the ASP.NET hosting environment can then use to service user requests.In addition to the security features of。NET, ASP.NET provides an advaneed security infrastructure for aut

31、henticating and authorizing user access as well as performing other security-related tasks. You can authenticate users using Windows authentication supplied by IIS, or you can manage authentication using your own user database using ASP.NET forms authentication and ASP NET membership. Additionally,

32、you can manage the authorization to the capabilities and information of your Web application using Windows groups or your own custom role database using ASPo NET roles. You can easily remove, add to, or replace these schemes depending upon the needs of your application. 本文為互聯(lián)網(wǎng)收集,請勿用作商業(yè)用途個人收集整理,勿做商業(yè)用

33、途ASP。 NET always runs with a particular Windows identity so you can secure your application using Windows capabilities such as NTFS Access Control Lists (ACLs), database permissions, and so on。 For more information on the identity of ASP。 NET,ASP。 NET provides intrinsic state management functionalit

34、y that enables you to store information between page requests such as customer information or the contents of a shopping cart. You can save and manage applicationspecific, session-specific, page-specific, userspecific, and developer-defined information. This information can be independent of any con

35、trols on the page.ASP。 NET offers distributed state facilities, which enable you to manage state information across multiple instances of the same application on one computer or on several computers。ASP.NET applications use a configuration system that enables you to define configuration settings for

36、 your Web server, for a Web site, or for individual applications. You can make configuration settings at the time your ASP。 NET applications are deployed and can add or revise configuration settings at any time with minimal impact on operational Web applications and servers. ASP。 NET configuration s

37、ettings are stored in XML-based files. Because these XML files are ASCII text files , it is simple to make configuration changes to your Web applications. You can exte nd the con figurati on scheme to suit your requireme nts 個人收集整理,勿做商 業(yè)用途本文為互聯(lián)網(wǎng)收集,請勿用作商業(yè)用途ASP.NET includes features that enable you to

38、 monitor health and performance of your ASP.NET application. ASP.NET health monitoring enables reporting of key events that provide information about the health of an application and about error conditions. These events show a combination of diagnostics and monitoring characteristics and offer a hig

39、h degree of flexibility in terms of what is logged and how it is logged。ASP.NET supports two groups of performance counters accessible to your applications:?The ASP。NET system performanee counter group?The ASP。 NET application performance counter groupASP。 NET takes advantage of the runtime debuggin

40、g infrastructure to provide cross Ianguage and cross-computer debugging support You can debug both managed and unmanaged objects, as well as all languages supported by the common Ian guage run time and script la nguagesIn addition, the ASP.NET page framework provides a trace mode that enables you to

41、 insert instrumentation messages into your ASP NET Web pagesASP。NET supports XML Web services。An XML Web service is a component containing business functionality that enables applications to exchange information across firewalls using standards like HTTP and XML messaging. XML Web services are not t

42、ied to a particular component technology or object calling convention. As a result, programs written in any language, using any component model, and running on any operati ng system can access XML Web servicesASP。 NET includes an extensible hosting environment that controls the life cycle of an appl

43、ication from when a user first accesses a resourc(e such as a pag)e in the application to the point at which the application is shut down. While ASP。 NET relies on a Web server (IIS) as an application hos,t ASP。 NET provides much of the hosting functionality itself. The architecture of ASP。 NET enab

44、les you to respond to applicati on eve nts and create custom HTTP han dlers and HTTP modulesASP.NET includes enhanced support for creating designers for Web server controls for use with a visual design tool such as Visual Studio. Designers enable you to build a design-time user interface for a contr

45、ol, so that developers can configure your control ' s properties and content in the visual design toolIntroduction to the C Language and the .NET Framework C# is an elegant and typesafe object-oriented language that enables developers to build a wide range of secure and robust applications that

46、run on the。 NET Framework。 You can use C# to create traditional Windows client applications, XML Web services, distributed components, clientserver applications, database application,s and much, much more. Microsoft Visual C# 2005 provides an advanced code editor, convenient user interface designers

47、, integrated debugge,r and many other tools to facilitate rapid application development based on version 2.0 of the C Ianguage and the。NET Framework個人收集整理,勿做商業(yè)用途本文為互聯(lián)網(wǎng)收集,請勿用作商業(yè)用途The Visual C # documentation assumes that you have an understanding of basic program ming con ceptsIf you are a complete b

48、egi nner, you might want to exploreVisual C # Express Edition, which is available on the Web. You can also take adva ntage of any of several excelle nt books and Web resources on C# to lear n practical program ming skills。C # syntax is highly expressive, yet with less than 90 keywords, it is also si

49、mple and easy to learn. The curly-brace syntax of & will be instantly recognizable to anyone familiar with C,C+ or Java. Developers who know any of these Ian guagesare typically able to beg in work ing productively in C# withi n a very short time. C # syn tax simplifies many of the complexities

50、of C+ while providi ng powerful features such as nullable value types enumerations, delegates anonymous methods and direct memory access, which are not found in Java C# also supports gen eric methods and types, which provide in creased type safety and performa nee, and iterators, which en able imple

51、me nters of collectio n classes to defi ne custom iterati on behaviors that are simple to use by clie nt cod文檔為個人收集整理,來源于網(wǎng)絡(luò)個人收集整理,勿做 商業(yè)用途As an object-orie nted Ian guage, C# supports the con cepts of en capsulatip nin herita nee and polymorphism。 All variables and methods,in cludi ng the Mainmethod,

52、 the applicatio n'spenityare encapsulated within class definitions class may in herit directly from one pare nt class, but it may impleme nt any nu mber of in terfaces. Methods that override virtual methods in a pare nt class require the override keyword as a way to avoid accidental redefinition

53、. In C#, a struct is like a lightweight class; it is a stack allocated type that can impleme nt in terfaces but doesnot support in herita nce文檔為個人收集整理來源于網(wǎng)絡(luò)本文為互聯(lián)網(wǎng)收集,請勿用作商業(yè)用途In addition to these basic object oriented principles, C# facilitates the development of software components through several inn

54、ovative language constructs, including:? Encapsulated method signatures called delegates, which enable type-safe event notifications.?Properties, which serve as accessors for private member variables.?Attributes , which provide declarative metadata about types at run time.? Inline XML documentation

55、comments 。If you need to interact with other Windows software such as COM objects or n ative Win32 DLLs , you can do this in C# through a process called' In terop " Interop enables C programs to do just about anything that a native C+ application can do。 C# even supports pointers and the co

56、ncept of” unsafe" code for those casesin which direct memory access is absolutely criticalThe C# build process is simple compared to C and C+ and more flexible than in Java。 There are no separate header files, and no requirement that methods and types be declared in a particular order. A C# sou

57、rce file may define any number of classes, structs, interfaces, and events。C# programs run on the。NET Framework, an integral component of Windows that includes a virtual execution system called the common language runtim(e CLR) and a unified set of class libraries。 The CLR is Microsoft's commerc

58、ial implementation of the common language infrastructure(CLI), an international standard that is the basis for creating execution and development environments in which languages and libraries work together seamlessly.Source code written in C# is compiled into an intermediate language (IL) that conforms to the CLI specification。 The IL code, along with resources such as bitmaps and strings, is stored on disk in an executable file called an assemb,ly typically with an extension of 。 exe or 。 dll. An assembly contains a manifest thatprovides in formati on on t

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論