C#: Inheriting separate static members for derived classes
问题 My problem in brief: class A { /* Other stuff in my class*/ protected static staticMember; } class B : A { /* Other stuff in my class*/ // Will have A.staticMember but I want B.staticMember (same type) } class C : A { /* Other stuff in my class*/ // Will have A.staticMember but I want C.staticMember (same type) } So I want all my derived class to have a shared data that is shared for that paricular class but have a common signature defined in the base class. I'm creating a simple RTS game for