Click here to Skip to main content
15,921,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: GENERIC SINGLETON (using... err... generics.) Pin
Nick Parker14-Jul-04 16:53
protectorNick Parker14-Jul-04 16:53 
Generalubiquitous error Pin
Anonymous14-Jul-04 15:23
Anonymous14-Jul-04 15:23 
GeneralRe: ubiquitous error Pin
Nick Parker14-Jul-04 17:00
protectorNick Parker14-Jul-04 17:00 
GeneralCrystal Report Pages Pin
Saktya14-Jul-04 14:29
Saktya14-Jul-04 14:29 
GeneralRe: Crystal Report Pages Pin
Pain_Elemental14-Jul-04 21:44
Pain_Elemental14-Jul-04 21:44 
QuestionFree menu/toolbar library? Pin
Arun Bhalla14-Jul-04 12:46
Arun Bhalla14-Jul-04 12:46 
AnswerRe: Free menu/toolbar library? Pin
Werdna16-Jul-04 5:58
Werdna16-Jul-04 5:58 
GeneralRegistering subclasses with their base Pin
khan200014-Jul-04 12:11
khan200014-Jul-04 12:11 
I'm trying to create a C# class with functionality similar to the one from this article:
http://www.codeproject.com/cpp/enumleafclasses.asp

The only problem I have encountered is that under my design an instance of the leaf class must be created before the class will registered itself. This is not so with the code from the article.

How can I have a leaf class register itself with its base class without needing to create an instance of the leaf class?

The base class has the following member of my class defined:

protected static LeafFactory _LF = new LeafFactory(Type.GetType("LeafFactory_dev.BaseClass"));

And this is how I currently register the leaf class in its constructor:

BaseClass._LF.RegisterLeaf(this.GetType(), "description here");

-- K


GeneralProblem accessing a function in a nested class Pin
crushinghellhammer14-Jul-04 11:07
crushinghellhammer14-Jul-04 11:07 
GeneralRe: Problem accessing a function in a nested class Pin
Nick Parker14-Jul-04 11:42
protectorNick Parker14-Jul-04 11:42 
GeneralRe: Problem accessing a function in a nested class Pin
crushinghellhammer14-Jul-04 11:57
crushinghellhammer14-Jul-04 11:57 
GeneralRe: Problem accessing a function in a nested class Pin
crushinghellhammer14-Jul-04 12:25
crushinghellhammer14-Jul-04 12:25 
GeneralRe: Problem accessing a function in a nested class Pin
Nick Parker14-Jul-04 13:19
protectorNick Parker14-Jul-04 13:19 
GeneralRe: Problem accessing a function in a nested class Pin
crushinghellhammer14-Jul-04 13:29
crushinghellhammer14-Jul-04 13:29 
GeneralRe: Problem accessing a function in a nested class Pin
Nick Parker14-Jul-04 15:19
protectorNick Parker14-Jul-04 15:19 
GeneralFileStream / BinaryReader Pin
PaleyX14-Jul-04 10:31
PaleyX14-Jul-04 10:31 
GeneralRe: FileStream / BinaryReader Pin
Nick Parker14-Jul-04 11:54
protectorNick Parker14-Jul-04 11:54 
QuestionPlease i need helping in TAPI application ? Pin
Wail A.Salem14-Jul-04 10:18
Wail A.Salem14-Jul-04 10:18 
AnswerRe: Please i need helping in TAPI application ? Pin
Nick Parker14-Jul-04 10:31
protectorNick Parker14-Jul-04 10:31 
GeneralRe: Please i need helping in TAPI application ? - edited Pin
Michael P Butler14-Jul-04 10:34
Michael P Butler14-Jul-04 10:34 
GeneralRe: Please i need helping in TAPI application ? - edited Pin
Nick Parker14-Jul-04 10:47
protectorNick Parker14-Jul-04 10:47 
GeneralRe: Please i need helping in TAPI application ? - edited Pin
Michael P Butler14-Jul-04 10:52
Michael P Butler14-Jul-04 10:52 
AnswerRe: Please i need helping in TAPI application ? Pin
Michael P Butler14-Jul-04 10:31
Michael P Butler14-Jul-04 10:31 
Generalrss readers Pin
Konstantin_progr14-Jul-04 10:08
Konstantin_progr14-Jul-04 10:08 
GeneralRe: rss readers Pin
Michael P Butler14-Jul-04 10:43
Michael P Butler14-Jul-04 10:43 

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.