Book description
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 the 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, and then it takes you on a deep dive into the tools and techniques that will help you implement them in your .NET applications.
Written for readers comfortable with C# and the .NET framework--no prior experience with metaprogramming is required.
What's Inside
- Metaprogramming concepts in plain language
- Creating scriptable software
- Code generation techniques
- The Dynamic Language Runtime
About the Reader
Readers should be comfortable with C# and the .NET framework. No prior experience with metaprogramming is required.
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.
Quotes
An excellent way to start fully using the power of metaprogramming.
- From the Foreword by Rockford Lhotka, Creator of the CSLA .NET Framework
A thorough and comprehensive distillation of the vast array of code generation options in .NET.
- Harry Cummings, Softwire
An extensive collection of "aha!" discoveries on developing applications beyond the mere compiler.
- William Lee, Qualcomm, Inc.
An excellent reference … insightful examples.
- Arun Noronha, Guardian Protection Services
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Foreword
- Preface
- Acknowledgments
- About this Book
- About the Cover Illustration
- Part 1. Demystifying metaprogramming
- Part 2. Techniques for generating code
- Part 3. Languages and tools
- Appendix A. Metaprogramming in Windows 8
- Appendix B. Usage guide
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Metaprogramming in .NET
- Author(s):
- Release date: December 2012
- Publisher(s): Manning Publications
- ISBN: 9781617290268
You might also like
book
Design Patterns in .NET Core 3: Reusable Approaches in C# and F# for Object-Oriented Software Design
Implement design patterns in .NET Core 3 using the latest versions of the C# and F# …
book
.NET Development Using the Compiler API
This is the first book to describe the recent significant changes to the .NET compilation process …
book
String Algorithms in C: Efficient Text Representation and Search
Implement practical data structures and algorithms for text search and discover how it is used inside …
book
C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development - Fourth Edition
Publisher's Note: Microsoft stops supporting .NET Core 3.1 in December 2022. The newer 7th edition of …