相關主題
商品描述
Advanced .NET IL Assembler is a comprehensive drill-down into the inner workings of the .NET Framework. Acknowledged runtime expert and Microsoft insider Serge Lidin steps through the internal structures and operations that take place when .NET code is executed, showing how the syntax and grammar of the coding language is broken down into low-level units that can be expressed through the ILAsm language that runs behind the scenes in .NET.
By reading this book you will develop the skills you need to write tighter, faster, .NET code; to debug complex error handling situations; and to oversee multi-language and multi-platform projects with confidence.
What you’ll learn
- Discover the structure of the .NET execution sequence and the Managed Executable Files that lie within it.
- Step through the core .NET component modules, namespaces and classes and see how each is consumed by ILAsm and can be optimized for execution
- Learn how to use the IL Assembler and Disassembler tools to analyze .NET code, metadata structures and exception handling within Visual Studio.
- Understand the issues that surround multi-language and multi-framework projects
- Develop your own Custom Attributes and tailor them for speed and security.
Who this book is for
This book is aimed at .NET developers with a good understanding of C# and an understanding of how the .NET Framework framework stack operates. All concepts related to the CLR and MSIL are introduced from first principals. The concepts taught are valid for all versions of .NET.
Table of Contents
PART 1:
1. Simple Sample
2. Enhancing your .NET Code
3. Making IL Coding Easier
PART 2:
4. The Structure of a Managed Executable File5. Metadata Tables Organization
PART 3:
6. Modules and Assemblies
7. Namespaces and Classes
8. Primitive Types and Signitures
9. Fields and Data Constants
10. Methods
11. Generic Types
12. Generic Methods
PART 4:
13. IL Instructions
14. Managed Exception Handling
PART 5:
15. Events and Properties
16. Custom Attributes
17. Security Attributes
18. Managed and Unmanaged Code Interoperation
19. Multilanguage Projects
20. Appendix A
21. Appendix B
22. Appendix C
23. Appendix D
24. Appendix E
商品描述(中文翻譯)
《進階 .NET IL 組合器》深入探討 .NET Framework 的內部運作。被認可的執行時專家及微軟內部人士 Serge Lidin 逐步解析 .NET 代碼執行時所發生的內部結構和操作,展示如何將程式語言的語法和文法分解為可以透過 ILAsm 語言表達的低階單元,這些單元在 .NET 背後運行。
閱讀本書後,您將發展出撰寫更緊湊、更快速的 .NET 代碼所需的技能;能夠調試複雜的錯誤處理情況;並自信地監督多語言和多平台的專案。
您將學到的內容:
- 探索 .NET 執行序列的結構及其內部的管理可執行檔。
- 逐步了解核心 .NET 組件模組、命名空間和類別,並查看每個如何被 ILAsm 使用及如何優化以便執行。
- 學習如何使用 IL 組合器和反組合器工具來分析 .NET 代碼、元數據結構和 Visual Studio 中的例外處理。
- 理解多語言和多框架專案所面臨的問題。
- 開發您自己的自定義屬性,並針對速度和安全性進行調整。
本書適合對象:
本書針對對 C# 有良好理解的 .NET 開發人員,以及了解 .NET Framework 堆疊運作的讀者。所有與 CLR 和 MSIL 相關的概念均從基本原則介紹。所教授的概念適用於所有版本的 .NET。
目錄:
第一部分:
1. 簡單範例
2. 增強您的 .NET 代碼
3. 使 IL 編碼更簡單
第二部分:
4. 管理可執行檔的結構
5. 元數據表組織
第三部分:
6. 模組和組件
7. 命名空間和類別
8. 原始類型和簽名
9. 欄位和數據常數
10. 方法
11. 泛型類型
12. 泛型方法
第四部分:
13. IL 指令
14. 管理的例外處理
第五部分:
15. 事件和屬性
16. 自定義屬性
17. 安全屬性
18. 管理和非管理代碼互操作
19. 多語言專案
20. 附錄 A
21. 附錄 B
22. 附錄 C
23. 附錄 D
24. 附錄 E