By Kevin Hazzard
Metaprogramming in .NET is designed to aid readers comprehend the fundamental thoughts, merits, and strength pitfalls of metaprogramming. It introduces center techniques in transparent, easy-to-follow language after which it takes you on a deep dive into the instruments and strategies you are going to use to enforce them on your .NET code. you are going to discover lots of real-world examples that make stronger key thoughts. in the event you end, you may construct high-performance, metaprogramming-enabled software program with confidence.
About the Technology
When you write courses that create or adjust different courses, you're metaprogramming. In .NET, you should use mirrored image in addition to more moderen innovations like code iteration and scriptable software program. The rising Roslyn venture exposes the .NET compiler as an interactive API, permitting compile-time code research and just-in-time refactoring.
About this Book
Metaprogramming in .NET is a realistic advent to using metaprogramming to enhance the functionality and maintainability of your code. This e-book avoids summary thought and as an alternative teaches you reliable practices you will discover precious instantly. It introduces center suggestions like code iteration and alertness composition in transparent, easy-to-follow language.
Written for readers pleased with C# and the .NET framework—no past adventure with metaprogramming is needed.
Purchase of the print e-book comes with a suggestion of a unfastened PDF, ePub, and Kindle publication from Manning. additionally to be had is all code from the booklet.
- Metaprogramming ideas in undeniable language
- Creating scriptable software
- Code new release techniques
- The Dynamic Language Runtime
About the Authors
Kevin Hazzard is a Microsoft MVP, advisor, instructor, and developer group chief within the mid-Atlantic united states. Jason Bock is an writer, Microsoft MVP, and the chief of the dual towns Code Camp.
"An very good technique to begin absolutely utilizing the ability of metaprogramming."—From the Foreword through Rockford Lhotka, writer of the CSLA .NET Framework
Table of Contents
- Metaprogramming concepts
- Exploring code and metadata with reflection
- The textual content 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
PART 1 DEMYSTIFYING METAPROGRAMMING
PART 2 ideas FOR producing CODE
PART three LANGUAGES AND TOOLS
Read Online or Download Metaprogramming in .NET PDF
Similar visual basic books
Methods to construct notable ASP. web 2. zero web content in either C# and VB. web from scratch utilizing freely to be had software program. utilizing a pragmatic step by step method, the authors introduce the ASP. web framework, educate you approximately database layout, and stroll you thru acquiring, fitting and configuring all of the freely on hand software program you can use ASP.
Examination PREP advisor Ace your training for the abilities measured by means of MCTS examination 70-516 - and at the activity - with this legit Microsoft examine advisor. paintings at your individual speed via a sequence of classes and reports that totally disguise each one examination target. Then, toughen and practice what you've gotten discovered via real-world case situations and perform routines.
Each one education advisor should be geared up round the examination ambitions. This makes it really easy for readers to target components the place they should enhance. It additionally is helping them determine what the main subject matters at the examination can be
Totally up-to-date for home windows eight help, . web four. five, and home windows mobilephone improvement, this is often the main complete, useful connection with sleek programming with visible uncomplicated 2012. Written by means of visible simple MVP Alessandro Del Sole, a long-time chief of the worldwide VB group, this e-book illuminates the center of the VB language and demonstrates its potent use in lots of present programming situations.
- Essential ASP NET with Examples in Visual Basic .NET
- Subclassing and Hooking with Visual Basic
- Visual Basic® .NET Unleashed
- Visual Basic for Testers
Extra resources for Metaprogramming in .NET
You’ll learn all about binding, dynamic objects, and other things the DLR provides. NET. Chapter 10 rounds out the book with a look into the future with Project Roslyn, a compiler API from Microsoft that will provide a view into your code like you’ve never had from them before. There are two appendixes. NET works in Windows Store applications. Appendix B is a usage guide summary of the techniques presented in chapters 2–10. Who should read this book? NET developer who wants not only to learn more than just how to “do” dependency injection and “use” controllers, but also to create frameworks that provide useful services to other developers, then this book is for you.
But soon you might also find yourself doing it to reduce the complexity of your systems. For example, weaving the code that does logging, performance monitoring, or transaction handling into a class library after it’s been compiled can greatly increase developer comprehension by reducing code complexity. Hiding all of that plumbing with metaprogramming can benefit everyone on the team. We love metaprogramming. We want to create beautiful pieces of code that can enable conventions in applications that make adding a new aspect easy.
Show the diagrams to an accountant and she’ll also choose the one on the right as the less complex. We recognize simplicity when we see it. Our challenge as programmers is in seeing the opportunities for simplicity in the systems we develop. Language features like encapsulation, abstraction, inheritance, data-hiding, and polymorphism are great, but they only take you part of the way there. The I in SOLID Along the way, we’ll refer to some of the five SOLID (single responsibility, open-closed, Liskov substitution, interface segregation, and dependency inversion) principles of object-oriented design (OOD).
Metaprogramming in .NET by Kevin Hazzard