【正文】
例如,您可以使用的IL Disassembler ,查看中級(jí)代碼為 TextBox 的 控件(位于一個(gè)名為 的文件中 )。 注意 Microsoft 包含一個(gè)與 . NET Framework 相關(guān)的 名為 the IL Disassembler (ILDASM)的 有趣工具, 。 此外,不像 VBScript , Visual Basic 是一 種 匯編語言。 經(jīng)典的 ASP 需要 注意 的問題 在 之前 , VBScript 語言是 制作動(dòng)態(tài)服務(wù)器網(wǎng)頁 最熱門的語言。 一個(gè) 的網(wǎng)頁 在 它 沒有被 瀏覽器 請(qǐng) 求 之前是不會(huì) 編譯 成 本地機(jī)器代碼 的 。每個(gè) 頁, 與之 相應(yīng)的類文件 會(huì) 出現(xiàn)在 Temporary 目錄 中 。這 就 意味著,如果你想 用 COBOL 來編 寫 頁 ,那么你就可以 使用 COBOL 語言來編寫 。這 些語言 包括 C # (發(fā)音為 sharp) , ( . NET 版本的 JavaScript )和擴(kuò)展 C + + 。 ? — 包含類的 Web 控件。 ? ,例如 Forms和 Passport 鑒定。 ? ,解碼以及處理字符串內(nèi)容的類。 ? System包含了所有基礎(chǔ)類型和其他一些有用的類,例如涉及到產(chǎn)生隨機(jī)數(shù)以及和時(shí)間和日期相關(guān)的類。比如定 為一個(gè)表示文件系統(tǒng)的 file 類,你可以使用以下的命名: 表示命名空間,而 File表示這個(gè)特殊的類。在這個(gè)邏輯分層的最根部是system 命名空間。想必來說, 則為你提供了多達(dá) 3400 個(gè)類。他包含了數(shù)以千計(jì)的類。 更重要的是, . 框架還將所有一些基礎(chǔ)變量都表示了出來,例如字符串類型,整型,字符型和數(shù)組。干嗎要不斷的重復(fù)歷史的車輪?如果只對(duì)函數(shù)建立一次而后對(duì)每種語言都使用是否會(huì)更爽些? 而 . 框架類庫正是如此,它包含了一組為滿足變成需要而設(shè)計(jì)的類。 最后,很多變成語言都有相似的變量類型定義。這些語言的很多函數(shù)都重復(fù)了,比如對(duì)于每種語言,你都必須包含一些訪問文件系統(tǒng),與數(shù)據(jù)庫打交 道,以及處理字符串的函數(shù)。ll find it easy to make the transition between the two languages. NOTE Microsoft includes an interesting tool named the IL Disassembler (ILDASM) with the .NET framework. You can use this tool to view the disassembled code for any of the classes in the Temporary Files directory. It lists all the methods and properties of the class and enables you to view the intermediatelevel code. This tool also works with all the controls discussed in this chapter. For example, you can use the IL Disassembler to view the intermediatelevel code for the TextBox control (located in a file named ). 和 .NET Framework 是微軟 .NET 框架總體戰(zhàn)略的一部分。s overall .NET framework, which contains a vast set of programming classes designed to satisfy any conceivable programming need. In the following two sections, you learn how fits within the .NET framework, and you learn about the languages you can use in your pages. The .NET Framework Class Library Imagine that you are Microsoft. Imagine that you have to support multiple programming languages— such as Visual Basic, JScript, and C++. A great deal of the functionality of these programming languages overlaps. For example, for each language, you would have to include methods for accessing the file system, working with databases, and manipulating strings. Furthermore, these languages contain similar programming constructs. Every language, for example, can represent loops and conditionals. Even though the syntax of a c