Cerebus,
You are spot-on with your interpretation of my situation. I apologize
for not being clearer. However, you obviously have experience using
this implementation of interfaces as you intuitively picked-up on my
needs.
So, to reiterate, I have an interface that acts as my contract which
my subscribers consume. The concrete implementation of the code
actually lays in another class that implements the interface. (I
highly suggest that any developer not familiar with this use of
interfaces investigate it further. This works wonderfully in the
scenarios you describe.) As we are an agile team that may or maynot
get to implementing the concrete implementation during a given
iteration. However, we do need to publish this contract to our
consumers for use so they can begin developing against it.
The problem that I have been trying to solve was to explicitly call
out, at design time, that a given method is not yet implemented. The
current solution is great for the developers that know to look for the
not-implemented comment. However, in a large organization, this is not
always the case. We have been using the NotImplementedException to
prevent any misleading code to slip through the cracks. It gets caught
in unit tests if not before. However, I agree this is not ideal.
This is precisely why I would like to find a solution that will likely
still include the XML comments. However, I was hoping to be able to
either create a compile-time warning or, if needed, a compile-time
error. Off the top of my head, I cannot think of a way to do this and
have not been able to locate any resources online that explain a
resolution to this situation. If there is not one, we will stick with
the documentation and just keep reminding people to pay close
attention to the documentation.
I had no idea that this little question would spark such an
interesting conversation. Thank you all for your comments.
TIA
rbr
> > > way to evaluate at design time what that attribute entails.- Hide quoted text -