Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: Limit Application Resource Usage Pin
leppie9-Mar-03 6:43
leppie9-Mar-03 6:43 
Generalreguarding strings Pin
jtmtv188-Mar-03 20:47
jtmtv188-Mar-03 20:47 
GeneralRe: reguarding strings Pin
leppie9-Mar-03 7:58
leppie9-Mar-03 7:58 
GeneralRe: reguarding strings Pin
jtmtv189-Mar-03 16:05
jtmtv189-Mar-03 16:05 
GeneralRe: reguarding strings Pin
jtmtv189-Mar-03 16:22
jtmtv189-Mar-03 16:22 
GeneralRe: reguarding strings Pin
leppie10-Mar-03 8:21
leppie10-Mar-03 8:21 
GeneralRe: reguarding strings Pin
Anonymous10-Mar-03 11:05
Anonymous10-Mar-03 11:05 
GeneralAccessing vairable etc in a different class Pin
monrobot138-Mar-03 12:27
monrobot138-Mar-03 12:27 
GeneralRe: Accessing vairable etc in a different class Pin
leppie8-Mar-03 12:48
leppie8-Mar-03 12:48 
GeneralRe: Accessing vairable etc in a different class Pin
monrobot139-Mar-03 11:31
monrobot139-Mar-03 11:31 
GeneralRe: Accessing vairable etc in a different class Pin
jpwkeeper10-Mar-03 1:59
jpwkeeper10-Mar-03 1:59 
GeneralRe: Accessing vairable etc in a different class Pin
monrobot1310-Mar-03 15:42
monrobot1310-Mar-03 15:42 
GeneralRe: Accessing vairable etc in a different class Pin
jpwkeeper11-Mar-03 3:40
jpwkeeper11-Mar-03 3:40 
GeneralInherited Static Constructors Pin
moredip8-Mar-03 9:51
moredip8-Mar-03 9:51 
GeneralRe: Inherited Static Constructors Pin
Nnamdi Onyeyiri8-Mar-03 10:45
Nnamdi Onyeyiri8-Mar-03 10:45 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 11:49
moredip8-Mar-03 11:49 
GeneralRe: Inherited Static Constructors Pin
leppie8-Mar-03 12:01
leppie8-Mar-03 12:01 
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

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.