Hello RJ,
HA! That would seriously violate the rules of inheritance. And even if
you could somehow violate these rules.. you now have a violation with the
..NET type checking.
Your base class can not require an inherited class to implement it's own
enum. Just not possible. Either define an enum on the base class that includes
all possible values... or redesign the mechanism that uses the enum so it
no longer uses an enum... or move the entire enum-requiring mechanism outside
the pervue of the base class.
-Boo
I was hoping to code a base class that would somehow require
inheriting classes to define an Enum. Each inheriting child class
needs to define it's own enum with it's own enumerated values, which
are unique for that child class. I can't find a way for a base class
to required this. Any ideas?
TIA