H
Hilton
Jon said:Ditto. C# improved on Java by making *methods* non-virtual by default -
I'd have thought that making classes sealed by default would have been
the logical next step.
I for one wish the "sealed" keyword on a class didn't exist. Why can I not
have:
class NamedThread : Thread
{
string name;
:
}
Please help me understand why any class would be sealed. You don't want to
expose stuff to the 'outside' world, fine, don't do it, but why can I not
add a name or tag to an object? To me, it just doesn't make sense and
breaks the whole notion of C#'s object programming.
Now, once you have justified the "sealed" keyword, explain to me a better
way of finding which thread is still running when I close my app versus
MessageBox.Show (thread.Name).
Thanks,
Hilton