They really need a preview pane in here to prevent those run on paragraphs
Thanks though, in this case I did modify the existing interface, because
adding the second did seem a bit clunky to me but your argument for not doing
so does make sense and it's likely to be the direction I take going forward.
Bill
"Peter Duniho" wrote:
> On Tue, 22 Jul 2008 10:43:02 -0700, wdudek <(E-Mail Removed)> wrote:
>
> > [...] Does this change anyone's opinion?
>
> Not mine. And I think you could use an occasional paragraph break. 
>
> Basically, I think that there are times when you can get away with simply
> modifying an existing interface. But I agree with Pavel in the sense that
> I think one should consider those situations carefully.
>
> The usual way to deal with versioning issues like this is actually to
> create a second interface, either as a new version of the old interface
> (so includes both methods) or as a whole new interface (including only the
> new method). You can use casting or "is" and "as" (in C#) to convert a
> reference to the old interface to one of the new interface.
>
> I'm not aware of a better general-purpose versioning mechanism in .NET. I
> wish there were one, but I'm not sure what it would look like
. If you
> have a really good, compelling reason to avoid using the standard approach
> and just modify the existing interface, there are (as I said) situations
> in which that could be justified. But otherwise, I think it's better to
> stick with the "tried and true", clunky though it might be. 
>
> Pete
>