Practical Code Generation in .NET: Covering Visual Studio by Peter Vogel

By Peter Vogel

Computerized code iteration can dramatically bring up your productiveness, increase code caliber and maintainability, advertise reuse, and assist you expand most sensible practices all through your improvement association. .NET and visible Studio include many robust, code-generation tools--and this publication exhibits you the way to be successful with them all. With useful Code iteration in .NET, spend much less time writing monotonous, repetitive code--leaving extra time to deal with areas of difficulty!

Show description

Read or Download Practical Code Generation in .NET: Covering Visual Studio 2005, 2008, and 2010 PDF

Similar networks books

Computer Networks (4th Edition) - Problem Solutions

Whole suggestions for machine Networks (4th version) by means of Andrew Tanenbaum.

Advances in Neural Networks - ISNN 2010: 7th International Symposium on Neural Networks, ISNN 2010, Shanghai, China, June 6-9, 2010, Proceedings, Part I

This publication and its sister quantity acquire refereed papers offered on the seventh Inter- tional Symposium on Neural Networks (ISNN 2010), held in Shanghai, China, June 6-9, 2010. construction at the good fortune of the former six successive ISNN symposiums, ISNN has develop into a well-established sequence of renowned and top of the range meetings on neural computation and its functions.

Sensor Networks and Configuration: Fundamentals, Standards, Platforms, and Applications

Advances in networking effect many varieties of tracking and keep watch over platforms within the such a lot dramatic approach. Sensor community and configuration falls lower than the class of contemporary networking structures. instant Sensor community (WSN) has emerged and caters to the necessity for real-world purposes. method and layout of WSN represents a huge study subject with purposes in lots of sectors similar to undefined, domestic, computing, agriculture, atmosphere, etc, in line with the adoption of basic rules and the cutting-edge know-how.

Additional resources for Practical Code Generation in .NET: Covering Visual Studio 2005, 2008, and 2010

Sample text

Because, for this example, I’m also passing the name of the class file to be created, my constructor looks like this (for Visual Studio 2005, replace the references to DTE2 with DTE): private string className; private DTE2 applicationObject; public CreatePartialClass(string ClassName, DTE2 ApplicationObject) { className = ClassName; applicationObject = ApplicationObject; } As you can see, all I do in this routine is capture the parameters passed to the constructor and store them in some fields declared at the top of the class file.

More importantly, you have, on your desktop, all the tools you need to further reduce that percentage. It’s the middle ground between hand-coding every line of code you write and a full-scale MDA solution where you can use code generation to make yourself more productive while generating more reliable code. There’s even a name for this middle ground: declarative programming. If you use SQL, you’re already familiar with the idea behind declarative programming. In SQL you specify the data that you want and the Relational Database Management System figures out how to get it.

Someday, MDA may become a reality. Today, code generation solutions can solve enumerable problems within the range of a single developer. NET has shown that the real benefits in code generation have come from the partial solutions—from the small-scale solutions used in this book up to the medium-scale solutions represented by the ORM tools. Existing code-generation packages are already reducing the amount of code that has to be managed to a small percentage of the total lines of code in the application.

Download PDF sample

Rated 4.38 of 5 – based on 5 votes