SummaryMetaprogramming 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 TechnologyWhen 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 BookMetaprogramming 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 frameworkno 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 InsideMetaprogramming concepts in plain languageCreating scriptable softwareCode generation techniquesThe Dynamic Language RuntimeAbout the AuthorsKevin 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."e;An excellent way to start fully using the power of metaprogramming."e;From the Foreword by Rockford Lhotka, Creator of the CSLA .NET FrameworkTable of ContentsPART 1 DEMYSTIFYING METAPROGRAMMINGMetaprogramming conceptsExploring code and metadata with reflectionPART 2 TECHNIQUES FOR GENERATING CODEThe Text Template Transformation Toolkit (T4)Generating code with the CodeDOMGenerating code with Reflection.EmitGenerating code with expressionsGenerating code with IL rewritingPART 3 LANGUAGES AND TOOLSThe Dynamic Language RuntimeLanguages and toolsManaging the .NET Compiler
EAN 9781638351818
ISBN 1638351813
Typ produktu Ebook
Vydavateľ Manning
Dátum vydania 30. decembra 2012
Stránky 360
Jazyk English
Krajina Uruguay
Autori Bock, Jason; Hazzard, Kevin