G
Guest
Hi,
I was just wondering, why is not possible to make a member of a class BOTH
abstract and static? MSDN says just that's in an error, not why this is so.
In a nutshell, I need this:
I have an abstract base class called EntityBase that all my other business
objects are derived from. I want to be able to load and save them in a
generic manner. I use a static method called EntityBase.GetByID(int id) and a
member method called EntityBase.Save(). I want to be able to force every
derived class to implement both of these methods, with this limitation I
can't though. Is there any workaround? Is there any reason for this
limitation in the first place?
Thanks!
I was just wondering, why is not possible to make a member of a class BOTH
abstract and static? MSDN says just that's in an error, not why this is so.
In a nutshell, I need this:
I have an abstract base class called EntityBase that all my other business
objects are derived from. I want to be able to load and save them in a
generic manner. I use a static method called EntityBase.GetByID(int id) and a
member method called EntityBase.Save(). I want to be able to force every
derived class to implement both of these methods, with this limitation I
can't though. Is there any workaround? Is there any reason for this
limitation in the first place?
Thanks!