Click here to Skip to main content
15,898,984 members
Home / Discussions / C#
   

C#

 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 12:14
moredip8-Mar-03 12:14 
GeneralRe: Inherited Static Constructors Pin
leppie8-Mar-03 12:44
leppie8-Mar-03 12:44 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 12:56
moredip8-Mar-03 12:56 
GeneralRe: Inherited Static Constructors Pin
leppie8-Mar-03 13:14
leppie8-Mar-03 13:14 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 13:43
moredip8-Mar-03 13:43 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 13:53
moredip8-Mar-03 13:53 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 14:10
moredip8-Mar-03 14:10 
GeneralRe: Inherited Static Constructors Pin
leppie8-Mar-03 14:25
leppie8-Mar-03 14:25 
moredip wrote:
Just to clarify, I wanted a Delete( uint rowID ) function, that simply removes the specified row, and doesn't use any instance-specific data.

But your are using instance specific data. The only solution is to add the same static function and static field for each class... Personally I would just use instances and let inheritance do the trick for me. Remember doing the following will allways return what ever classes satic contructor got called last (in your psuedo class).

Parent.PrintClassName();
ChildA.PrintClassName();
ChildB.PrintClassName();

static is just not kosher with OOP. You want to use a single value to store 3 different values. That is just impossible. Poke tongue | ;-P Go the instance way rather.

I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 16:05
moredip8-Mar-03 16:05 
GeneralRe: Inherited Static Constructors Pin
leppie9-Mar-03 7:02
leppie9-Mar-03 7:02 
GeneralRe: Inherited Static Constructors Pin
moredip9-Mar-03 7:26
moredip9-Mar-03 7:26 
GeneralRe: Inherited Static Constructors Pin
leppie9-Mar-03 7:54
leppie9-Mar-03 7:54 
GeneralTextBox DataBinding Pin
leppie8-Mar-03 7:24
leppie8-Mar-03 7:24 
GeneralRe: TextBox DataBinding Pin
leppie8-Mar-03 7:31
leppie8-Mar-03 7:31 
GeneralDocking Problem Pin
Mazdak8-Mar-03 7:02
Mazdak8-Mar-03 7:02 
GeneralRe: Docking Problem Pin
leppie8-Mar-03 7:19
leppie8-Mar-03 7:19 
GeneralRe: Docking Problem Pin
Mazdak8-Mar-03 8:15
Mazdak8-Mar-03 8:15 
GeneralRe: Docking Problem Pin
leppie8-Mar-03 8:25
leppie8-Mar-03 8:25 
GeneralRe: Docking Problem Pin
Roger Alsing8-Mar-03 11:33
Roger Alsing8-Mar-03 11:33 
GeneralRe: Docking Problem Pin
leppie8-Mar-03 12:08
leppie8-Mar-03 12:08 
GeneralRe: Docking Problem Pin
Mazdak8-Mar-03 17:53
Mazdak8-Mar-03 17:53 
QuestionAnything Like MFC's CWinThread in C#? Pin
Xytme8-Mar-03 6:33
Xytme8-Mar-03 6:33 
AnswerRe: Anything Like MFC's CWinThread in C#? Pin
Mazdak8-Mar-03 7:04
Mazdak8-Mar-03 7:04 
QuestionAnything Like MFC's CWinThread in C#? Pin
Xytme8-Mar-03 6:33
Xytme8-Mar-03 6:33 
AnswerRe: Anything Like MFC's CWinThread in C#? Pin
David Stone8-Mar-03 6:44
sitebuilderDavid Stone8-Mar-03 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.