A
Andrew Ducker
Let's say I have a root class called RootBusinessService
and I then want to have 25 business service classes based off of it.
And each class has a property that's shared between all instances of it
- called 'State'. I therefore want all of them to have a static
property State.
However, I can't declare this static property in RootBusinessService -
because if I do, the subclasses will all point to that single property.
So I have to declare it in each individual class. 25 times.
Not only that, but if I want it to come up in intellisense for all
subclasses of RootBusinessServer, I need to create a get/set in the
root, and override it in each subclass to point to the 'local' static
property.
Is this right, or am I missing a really easy way to have a static
property automatically exist in all subclasses of a given class?
Cheers,
Andy D
and I then want to have 25 business service classes based off of it.
And each class has a property that's shared between all instances of it
- called 'State'. I therefore want all of them to have a static
property State.
However, I can't declare this static property in RootBusinessService -
because if I do, the subclasses will all point to that single property.
So I have to declare it in each individual class. 25 times.
Not only that, but if I want it to come up in intellisense for all
subclasses of RootBusinessServer, I need to create a get/set in the
root, and override it in each subclass to point to the 'local' static
property.
Is this right, or am I missing a really easy way to have a static
property automatically exist in all subclasses of a given class?
Cheers,
Andy D