You could also consider creating an abstract class. Shared/static members
are allowed in this context and you get the same result.
I would strongly suggest the abstract approach, as opposed to fillding with
IL Greg. Even if a specific langauge (VB or C#) respects this at a point in
time, I would work within the constraints of what the compilers officialy
support, since you know that that support will continue to be there from
version to version. If you change things in il, then we may muck things up
for you in the future.
Greg Young - 23 Jun 2004 21:24 GMT
I agree and would have done it this way, however the code I am dealing with
is not mine and would require MAJOR architectural changes in order to do
this. I guess I will just hack it and put the methods external to the
interfaces although I have to admit I was also morbidly curious :D
> I would strongly suggest the abstract approach, as opposed to fillding with
> IL Greg. Even if a specific langauge (VB or C#) respects this at a point in
> time, I would work within the constraints of what the compilers officialy
> support, since you know that that support will continue to be there from
> version to version. If you change things in il, then we may muck things up
> for you in the future.