O'Reilly logo

Windows Forms 2.0 Programming by Michael Weinhardt, Chris Sells

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix F. Document Management

CONSIDER THE RATES OF RETURN application shown in Figure F.1, an application used to calculate both average and annualized rates of return.

Figure F.1. The Rates of Return Application

Image

Each row represents a single period of return that's encapsulated by the PeriodReturn type:

// PeriodReturn.csclass PeriodReturn {   string period;   decimal returnRate;   decimal principal;   public PeriodReturn() {}   public PeriodReturn(     string period, decimal returnRate, decimal principal) {     this.period = period;     this.returnRate = returnRate;     this.principal = principal;   }   public string Period {     get { return this.period; } ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required