Code Generation with Roslyn

Learn from the first book to cover how to use Roslyn’s new code generation capability to write software that is more concise, runs faster, and is easier to maintain. This book focuses on real-world business applications to demonstrate how to create better software by letting the computer write its own code based on your business logic already defined in lookup tables.These techniques can also be used to simplify systems integration. If one system already defines business logic through lookup tables, you can integrate a new system and share business logic by allowing the new system to write its own business logic based on already existing table-based business logic.Roslyn is the latest .Net compiler platform from Microsoft. Roslyn uses an innovative approach to compiler design opening up the inner workings of the compiler process. One of the many benefits this creates is that we can see the syntax tree that Roslyn is building as it compiles our code. Additionally, we can feed it our own syntax tree that we create on the fly.What You Will Learn:• Structure logic to be stored in database design• Build complex conditional logic based on lookup data in the database• Compile code that you generate programmatically• Discover generated code and run it dynamically to implement new business logic• Debug problems in generated code• Deploy and access generated codeWho This Book Is For:Back end developers in very dynamic fast-paced business environments.   Developers focused on integrating different systems across an enterprise should also find this information useful.

Author: Nick Harrison

Learn more