Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
GeneralRe: unresolved hashtable problem Pin
Jassim Rahma25-Apr-10 1:14
Jassim Rahma25-Apr-10 1:14 
GeneralRe: unresolved hashtable problem Pin
Som Shekhar25-Apr-10 1:25
Som Shekhar25-Apr-10 1:25 
GeneralRe: unresolved hashtable problem [modified] Pin
Jassim Rahma26-Apr-10 3:48
Jassim Rahma26-Apr-10 3:48 
GeneralRe: unresolved hashtable problem Pin
Som Shekhar26-Apr-10 3:54
Som Shekhar26-Apr-10 3:54 
GeneralRe: unresolved hashtable problem Pin
Jassim Rahma26-Apr-10 12:35
Jassim Rahma26-Apr-10 12:35 
GeneralRe: unresolved hashtable problem Pin
Som Shekhar26-Apr-10 17:41
Som Shekhar26-Apr-10 17:41 
QuestionVariable of type Pin
jabbawok20-Apr-10 10:18
jabbawok20-Apr-10 10:18 
AnswerRe: Variable of type Pin
Anthony Mushrow20-Apr-10 10:31
professionalAnthony Mushrow20-Apr-10 10:31 
There may be some strange way you can achieve what you want, but isn't there an easier way? I'm not sure exactly what you intend to do but a very common thing to do would be this:

enum ClassType
{
  CLASS1,
  CLASS2
}

BaseClass MakeClass(ClassType ct)
{
  switch(ct)
  {
    case CLASS1:
      return new Class1();
      break;

    etc.
  }
}

My current favourite word is: Smooth!
-SK Genius


GeneralRe: Variable of type Pin
jabbawok20-Apr-10 10:37
jabbawok20-Apr-10 10:37 
AnswerRe: Variable of type Pin
Luc Pattyn20-Apr-10 10:34
sitebuilderLuc Pattyn20-Apr-10 10:34 
GeneralRe: Variable of type Pin
jabbawok20-Apr-10 10:54
jabbawok20-Apr-10 10:54 
GeneralRe: Variable of type Pin
jabbawok20-Apr-10 11:00
jabbawok20-Apr-10 11:00 
GeneralRe: Variable of type Pin
Luc Pattyn20-Apr-10 11:09
sitebuilderLuc Pattyn20-Apr-10 11:09 
GeneralRe: Variable of type Pin
jabbawok20-Apr-10 12:53
jabbawok20-Apr-10 12:53 
GeneralRe: Variable of type Pin
Luc Pattyn20-Apr-10 11:03
sitebuilderLuc Pattyn20-Apr-10 11:03 
GeneralRe: Variable of type Pin
jabbawok20-Apr-10 11:12
jabbawok20-Apr-10 11:12 
GeneralRe: Variable of type Pin
Luc Pattyn20-Apr-10 11:15
sitebuilderLuc Pattyn20-Apr-10 11:15 
GeneralRe: Variable of type Pin
jabbawok20-Apr-10 11:23
jabbawok20-Apr-10 11:23 
AnswerRe: Variable of type Pin
jabbawok20-Apr-10 12:56
jabbawok20-Apr-10 12:56 
AnswerRe: Variable of type Pin
AspDotNetDev20-Apr-10 13:04
protectorAspDotNetDev20-Apr-10 13:04 
GeneralRe: Variable of type Pin
jabbawok20-Apr-10 13:32
jabbawok20-Apr-10 13:32 
AnswerRe: Variable of type Pin
AspDotNetDev20-Apr-10 14:04
protectorAspDotNetDev20-Apr-10 14:04 
AnswerRe: Variable of type Pin
AspDotNetDev20-Apr-10 14:09
protectorAspDotNetDev20-Apr-10 14:09 
QuestionwebBrowser controll and post Pin
Ziga120-Apr-10 9:21
Ziga120-Apr-10 9:21 
AnswerRe: webBrowser controll and post Pin
Ravi Bhavnani20-Apr-10 11:11
professionalRavi Bhavnani20-Apr-10 11:11 

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.