C
Chuck Bowling
I am using CodeDOM to generate source files. The classes being generated
have a const string member. This member is referenced in an abstract base
class but declared in the inheriting class. I can't declare the string in
the abstract class because it would require initialization. Is there a way
to require that any class inheriting from the base class contain this string
without a specific declaration in the base class? I tried putting a
declaration in an interface but the IDE still wants to see it initialized.
have a const string member. This member is referenced in an abstract base
class but declared in the inheriting class. I can't declare the string in
the abstract class because it would require initialization. Is there a way
to require that any class inheriting from the base class contain this string
without a specific declaration in the base class? I tried putting a
declaration in an interface but the IDE still wants to see it initialized.