Looking over an open source library I found the following code: interval void SomeMethodName(FooIncoming that) if (that.numAnswers > 0) { SupportClass.IListSupport.AddAll(this.answers, this.numAnswers, (IList) ((ArrayList) that.answers).GetRange(0, that.numAnswers - 0)); this.numAnswers += that.numAnswers; } if (that.numAuthorities > 0) { SupportClass.IListSupport.AddAll(this.answers, this.numAnswers + this.numAuthorities, (IList) ((ArrayList) that.answers).GetRange(that.numAnswers, that.numAnswers + that.numAuthorities - that.numAnswers)); this.numAuthorities += that.numAuthorities; } if (that.numAdditionals > 0) { SupportClass.ICollectionSupport.AddAll(this.answers, (IList) ((ArrayList) that.answers).GetRange(that.numAnswers + that.numAuthorities, that.numAnswers + that.numAuthorities + that.numAdditionals - (that.numAnswers + that.numAuthorities))); this.numAdditionals += that.numAdditionals; } ... } What I loved in this code was: that.numAnswers – 0 that....
DREAMER, CRAFTER, TECHNOLOGY ENTHUSIAST, SPEAKER, TRAINER, AZURE MVP, SOLVING HARD BUSINESS PROBLEMS WITH CUTTING-EDGE TECHNOLOGY