Metaprogramming in .NET
eBook - ePub

Metaprogramming in .NET

  1. 360 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Metaprogramming in .NET

About this book

Summary 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
PART 1 DEMYSTIFYING METAPROGRAMMING

  • Metaprogramming concepts
  • Exploring code and metadata with reflection
  • PART 2 TECHNIQUES FOR GENERATING CODE
  • 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
  • PART 3 LANGUAGES AND TOOLS
  • The Dynamic Language Runtime
  • Languages and tools
  • Managing the.NET Compiler

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Metaprogramming in .NET by Jason Bock,Kevin Hazzard in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Languages. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Copyright
  2. Brief Table of Contents
  3. Table of Contents
  4. Foreword
  5. Preface
  6. Acknowledgments
  7. About this Book
  8. About the Cover Illustration
  9. Part 1. Demystifying metaprogramming
  10. Part 2. Techniques for generating code
  11. Part 3. Languages and tools
  12. Appendix A. Metaprogramming in Windows 8
  13. Appendix B. Usage guide
  14. Index
  15. List of Figures
  16. List of Tables
  17. List of Listings