Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compiler error Pin
Heath Stewart13-Nov-03 6:40
protectorHeath Stewart13-Nov-03 6:40 
GeneralRe: Compiler error Pin
Jose Vicente13-Nov-03 20:39
Jose Vicente13-Nov-03 20:39 
GeneralRe: Compiler error Pin
Heath Stewart14-Nov-03 1:59
protectorHeath Stewart14-Nov-03 1:59 
GeneralSimple question: PerformanceCounter Pin
CillyMe13-Nov-03 4:27
CillyMe13-Nov-03 4:27 
GeneralRe: Simple question: PerformanceCounter Pin
leppie13-Nov-03 6:25
leppie13-Nov-03 6:25 
GeneralRe: Simple question: PerformanceCounter Pin
CillyMe13-Nov-03 13:45
CillyMe13-Nov-03 13:45 
GeneralRe: Simple question: PerformanceCounter Pin
leppie13-Nov-03 14:05
leppie13-Nov-03 14:05 
GeneralC# and Excel Pin
Member 51858613-Nov-03 4:18
Member 51858613-Nov-03 4:18 
Generalhelp needed to create custom control which can arrange controls in polygonal shape. Pin
Shailaja13-Nov-03 4:08
Shailaja13-Nov-03 4:08 
GeneralRe: help needed to create custom control which can arrange controls in polygonal shape. Pin
Heath Stewart13-Nov-03 6:31
protectorHeath Stewart13-Nov-03 6:31 
GeneralDistributed Transaction Pin
CillyMe12-Nov-03 22:15
CillyMe12-Nov-03 22:15 
QuestionRichTextBox Change Picture?? Pin
electronicm12-Nov-03 22:14
electronicm12-Nov-03 22:14 
AnswerRe: RichTextBox Change Picture?? Pin
Anonymous13-Nov-03 10:26
Anonymous13-Nov-03 10:26 
GeneralRe: RichTextBox Change Picture?? Pin
electronicm13-Nov-03 22:35
electronicm13-Nov-03 22:35 
GeneralMouse/Key Messages in Windows Service Pin
krisp12-Nov-03 19:37
krisp12-Nov-03 19:37 
GeneralRe: Mouse/Key Messages in Windows Service Pin
J. Dunlap12-Nov-03 20:59
J. Dunlap12-Nov-03 20:59 
GeneralRe: Mouse/Key Messages in Windows Service Pin
jeff_martin13-Nov-03 3:51
jeff_martin13-Nov-03 3:51 
GeneralRe: Mouse/Key Messages in Windows Service Pin
krisp13-Nov-03 16:36
krisp13-Nov-03 16:36 
GeneralRe: Mouse/Key Messages in Windows Service Pin
Jonathan Slenders13-Nov-03 9:41
Jonathan Slenders13-Nov-03 9:41 
GeneralGet Derived class Pin
pnolan12-Nov-03 19:21
pnolan12-Nov-03 19:21 
GeneralRe: Get Derived class Pin
krisp12-Nov-03 19:46
krisp12-Nov-03 19:46 
GeneralRe: Get Derived class Pin
pnolan12-Nov-03 20:04
pnolan12-Nov-03 20:04 
GeneralRe: Get Derived class Pin
krisp12-Nov-03 20:29
krisp12-Nov-03 20:29 
So you are not making specific derived classes that your parent class would know about at compile time of the parent class?

Is there a certain propery you want to call of the derived/child class (class B) or you just want to iterate through them all. Because you can make properies virtual or abstract as well so that your child class would have the property you are looking for.

As far as iterating through them, you should be able to use reflection and call the this.GetType().GetProperties(); and then iterate throught the returned PropertyInfo[] which has a Name and PropertyType property.

this.GetType() will return the type of the lowest child class not the type of the class that it is called within.

That help any?
GeneralRe: Get Derived class Pin
Colin Angus Mackay12-Nov-03 23:13
Colin Angus Mackay12-Nov-03 23:13 
GeneralCachedBitmap Pin
mhmoud rawas12-Nov-03 18:54
mhmoud rawas12-Nov-03 18:54 

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.