Click here to Skip to main content
15,911,306 members
Home / Discussions / C#
   

C#

 
GeneralRe: Culture extrange behavior Pin
Norman-Timo3-Aug-04 1:20
Norman-Timo3-Aug-04 1:20 
GeneralRe: Culture extrange behavior Pin
Jose Vicente3-Aug-04 3:14
Jose Vicente3-Aug-04 3:14 
QuestionHow to save status of runtime controls? Pin
sachinkalse2-Aug-04 21:24
sachinkalse2-Aug-04 21:24 
AnswerRe: How to save status of runtime controls? Pin
Norman-Timo3-Aug-04 0:52
Norman-Timo3-Aug-04 0:52 
GeneralIdentify max no of child nodes for a node in XML Pin
saud_a_k2-Aug-04 20:49
saud_a_k2-Aug-04 20:49 
GeneralRe: Identify max no of child nodes for a node in XML Pin
Norman-Timo3-Aug-04 1:06
Norman-Timo3-Aug-04 1:06 
GeneralRe: Identify max no of child nodes for a node in XML Pin
saud_a_k3-Aug-04 1:35
saud_a_k3-Aug-04 1:35 
GeneralRe: Identify max no of child nodes for a node in XML Pin
Norman-Timo3-Aug-04 1:54
Norman-Timo3-Aug-04 1:54 
GeneralRe: Identify max no of child nodes for a node in XML Pin
saud_a_k3-Aug-04 2:38
saud_a_k3-Aug-04 2:38 
GeneralRe: Identify max no of child nodes for a node in XML Pin
leppie3-Aug-04 1:52
leppie3-Aug-04 1:52 
GeneralRe: Identify max no of child nodes for a node in XML Pin
saud_a_k3-Aug-04 2:31
saud_a_k3-Aug-04 2:31 
GeneralProblem accessing array of objects Pin
crushinghellhammer2-Aug-04 20:33
crushinghellhammer2-Aug-04 20:33 
GeneralRe: Problem accessing array of objects Pin
misterbear2-Aug-04 23:22
misterbear2-Aug-04 23:22 
GeneralRe: Problem accessing array of objects Pin
Stefan Troschuetz2-Aug-04 23:35
Stefan Troschuetz2-Aug-04 23:35 
QuestionIs there an MMC Snap-in Designer for .NET environment? Pin
zzzhouzhou2-Aug-04 18:34
zzzhouzhou2-Aug-04 18:34 
Generalprobability Pin
Member 7040992-Aug-04 17:39
Member 7040992-Aug-04 17:39 
GeneralRe: probability Pin
SOCM_FP_CPP3-Aug-04 1:28
SOCM_FP_CPP3-Aug-04 1:28 
QuestionC++ class defined in header file. Implementation in C# ? Pin
crushinghellhammer2-Aug-04 14:42
crushinghellhammer2-Aug-04 14:42 
AnswerRe: C++ class defined in header file. Implementation in C# ? Pin
Christian Graus2-Aug-04 14:56
protectorChristian Graus2-Aug-04 14:56 
GeneralData Grid problem Pin
Anonymous2-Aug-04 13:33
Anonymous2-Aug-04 13:33 
QuestionMoved code breaks? Pin
Chris Korzeniowski2-Aug-04 13:09
Chris Korzeniowski2-Aug-04 13:09 
AnswerRe: Moved code breaks? Pin
Jay Shankar2-Aug-04 19:00
Jay Shankar2-Aug-04 19:00 
AnswerRe: Moved code breaks? Pin
sreejith ss nair2-Aug-04 19:22
sreejith ss nair2-Aug-04 19:22 
GeneralRe: Moved code breaks? Pin
Jay Shankar2-Aug-04 22:41
Jay Shankar2-Aug-04 22:41 
Questioncan't define a static method in an interface....? Pin
Jan R Hansen2-Aug-04 11:53
Jan R Hansen2-Aug-04 11:53 
Hi,

My main app need to call a static method on several different classes, so each class (A and B) inherited a base class (BASE) that defined and implemented (empty) a static method so that the main app could do this

doSomething()<br />
{<br />
    ((BASE)child).TheStaticMethod(...)<br />
}


Other methods were also defined as abstract, and had to be implemented by A and B.

Now I wanted things a bit "cleaner" so I created an interface that classes A and B inherited from and thus had to implement, which works just fine for all other methods than the static one. You cant say

Interface IBase<br />
{<br />
    static void ThePreviouslyStaticMethod();<br />
}


- as you get a "error CS0106: The modifier 'static' is not valid for this item" from the compiler.

Now what do I do ? Isn't it possible to force classes to implement a certain static method ?

Thanks in advance

/Jan

Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

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.