Dave <da*******@msn.com> wrote:
Here is what I have so far
Well, other than the duplicate removal being somewhat inefficient (and
you having a couple of member variables which should be local
variables), it looks like you're nearly there.
All you need to do is move the logic out of the constructor and into a
method which you can access from your checkButton_Click method - make
the constructor just take the original string and stash it away for
later processing.
Out of interest, how long are these strings likely to be? Removing the
duplicates should be pretty fast (especially if you get rid of the
repeated string concatenation and use a StringBuilder) - are you sure
you really need another thread?
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too