Eddie Garmon's Weblog

some architecture, some c#

Delimited String Builder

This went out in the DNR chat room... enjoy.

http://synapticpop.com/code/delimitedstringbuilder.cs.txt

Posted: Oct 29 2004, 09:52 PM by UltimateRinger | with 3 comment(s)
Filed under:

Comments

Aviv Raff said:

Shouldn't this class inherit from the StringBuilder class?
# October 30, 2004 3:43 AM

Eddie Garmon said:

Aviv, not really. With the ability to change the delimiter during use, you don't want people playing in the buffer area with Insert/Remove/Replace. If you want to expose Capicity/MaxCapicity, create passthru property getters.
# October 30, 2004 4:02 AM

Aviv Raff said:

Hrmm.. you are right. You use composition instead, which is good in this specific case.
Next time I'll read the code with more attention before posting.. :)
# October 30, 2004 5:05 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)