jCay.org

last scripts

popular scripts

top rated

search
 
search:

Advertisment

.NET - Use Refactoring To Handle Multiple Versions of Classes

DeEnFrSp
Hits: 883

.NET - Use Refactoring To Handle Multiple Versions of Classes

Rating 0.0 0.0
Recently, I had a requirement to put together a website that deals with taking somewhat elaborate financial surveys. While the questions and answers themselves are good candidates for being database driven, there were a large number of nuiances ranging from UI items, business rules, and calculations that just didn't fit into a database driven strategy. With this in mind, my initial strategy was to create version specific classes and reference them in version specific ASP.NET pages. Of course, this accomplished the initial requirement. However, whenever a new version needs to be implemented, I had to copy all of the ASP.NET pages and modify the references to the appropriate version specific class name. Refactoring provides a better alternative and here's how:


Platform(s): Windows
Date: Oct, 15 2004
Author: Robbe D. Morris, http://www.eggheadcafe.com/articles/20031103.asp

Ratings

Number of Ratings: 100 Votes
5     
46%
4
54%
3
0%
2
0%
1
0%
Visitor Voting Booth: Rate It!