Your question is not clear. What do you mean by "meaningless?" When the
ToString method is overridden in a class, the developer that overrides it
decides what the implementation should produce. I'm sure that this is for
the purpose of creating something "meaningful" out of the method, but what
the "meaning" is depends upon the class and the implementation of the
override. In other words, things are meaningful to different people at
different times for different reasons.
In fact, most overrides of the ToString method are meaningful only to
developers. They provide quick information about a class during the
debugging process. However, other overrides are useful for other purposes,
such as the override of ToString on Enums that displays the token of the
enumerated value.
I do not know of any way to tell whether or not a method is overridden in an
inherited class. It is probably possible to do this by using Reflection,
perhaps by getting a MethodInfo from both the base and derived class and
comparing them. But still, you aren't going to know whether the ToString
method implementation is "meaningful" to you. In fact, you haven't even
*defined* "meaningful."
--
HTH,
Kevin Spencer
Microsoft MVP
Chicken Salad Surgery
It takes a tough man to make a tender chicken salad.