
Metaprogramming in .NET
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Metaprogramming in .NET is designed to help readers understand the basic concepts, advantages, and potential pitfalls of metaprogramming. It introduces core concepts in clear, easy-to-follow language and then it takes you on a deep dive into the tools and techniques you'll use to implement them in your .NET code. You'll explore plenty of real-world examples that reinforce key concepts. When you finish, you'll be able to build high-performance, metaprogramming-enabled software with confidence.
About the Technology
When you write programs that create or modify other programs, you are metaprogramming. In .NET, you can use reflection as well as newer concepts like code generation and scriptable software. The emerging Roslyn project exposes the .NET compiler as an interactive API, allowing compile-time code analysis and just-in-time refactoring.
About this Book
Metaprogramming in .NET is a practical introduction to the use of metaprogramming to improve the performance and maintainability of your code. This book avoids abstract theory and instead teaches you solid practices you'll find useful immediately. It introduces core concepts like code generation and application composition in clear, easy-to-follow language.
Written for readers comfortable with C# and the .NET framework?no prior experience with metaprogramming is required.
Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.
What's Inside
- Metaprogramming concepts in plain language
- Creating scriptable software
- Code generation techniques
- The Dynamic Language Runtime
About the Authors
Kevin Hazzard is a Microsoft MVP, consultant, teacher, and developer community leader in the mid-Atlantic USA. Jason Bock is an author, Microsoft MVP, and the leader of the Twin Cities Code Camp.
"An excellent way to start fully using the power of metaprogramming."?From the Foreword by Rockford Lhotka, Creator of the CSLA .NET Framework
Table of Contents
- Metaprogramming concepts
- Exploring code and metadata with reflection
- The Text Template Transformation Toolkit (T4)
- Generating code with the CodeDOM
- Generating code with Reflection.Emit
- Generating code with expressions
- Generating code with IL rewriting
- The Dynamic Language Runtime
- Languages and tools
- Managing the .NET Compiler
More details
Other editions
Additional editions

Persons
Kevin Hazzard is a consultant, entrepreneur and Microsoft MVP based in Richmond, Virginia. He co-founded the Richmond Software Craftsmanship Group and runs the Richmond Code Camp. Kevin has served multiple terms on Virginia's Joint Commission on Te
Content
- Intro
- Copyright
- Brief Table of Contents
- Table of Contents
- Foreword
- Preface
- Acknowledgments
- About this Book
- About the Cover Illustration
- Part 1. Demystifying metaprogramming
- Chapter 1. Metaprogramming concepts
- Chapter 2. Exploring code and metadata with reflection
- Part 2. Techniques for generating code
- Chapter 3. The Text Template Transformation Toolkit (T4)
- Chapter 4. Generating code with the CodeDOM
- Chapter 5. Generating code with Reflection.Emit
- Chapter 6. Generating code with expressions
- Chapter 7. Generating code with IL rewriting
- Part 3. Languages and tools
- Chapter 8. The Dynamic Language Runtime
- Chapter 9. Languages and tools
- Chapter 10. Managing the .NET Compiler
- Appendix A. Metaprogramming in Windows 8
- Appendix B. Usage guide
- Index
- List of Figures
- List of Tables
- List of Listings
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.