Click here to Skip to main content
15,901,871 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combining in and like Pin
Vikram A Punathambekar6-Jul-06 20:50
Vikram A Punathambekar6-Jul-06 20:50 
GeneralRe: Combining in and like Pin
Blake Miller7-Jul-06 3:47
Blake Miller7-Jul-06 3:47 
GeneralRe: Combining in and like Pin
DontSailBackwards7-Jul-06 21:22
DontSailBackwards7-Jul-06 21:22 
AnswerRe: Combining in and like Pin
ToddHileHoffer6-Jul-06 9:09
ToddHileHoffer6-Jul-06 9:09 
AnswerRe: Combining in and like Pin
NRavep9-Jul-06 20:55
NRavep9-Jul-06 20:55 
QuestionPassing a Class as a method parameter? Pin
joshp12176-Jul-06 8:40
joshp12176-Jul-06 8:40 
AnswerRe: Passing a Class as a method parameter? [modified] Pin
ToddHileHoffer6-Jul-06 8:51
ToddHileHoffer6-Jul-06 8:51 
AnswerRe: Passing a Class as a method parameter? Pin
Josh Smith6-Jul-06 9:04
Josh Smith6-Jul-06 9:04 
You can pass a Type object and then use Activator.CreateInstance to create an instance via the default (parameterless) constructor.

Or, if you're using .NET 2, you can make a generic method whose type parameter is the type that you want to create. Then just do T obj = new T(); where T is your type parameter name.

If all else fails, you can always do the magical type parameter dance and everything should work out fine. Wink | ;)

:josh:
My WPF Blog[^]
GeneralRe: Passing a Class as a method parameter? Pin
Judah Gabriel Himango6-Jul-06 9:29
sponsorJudah Gabriel Himango6-Jul-06 9:29 
GeneralRe: Passing a Class as a method parameter? Pin
Jun Du6-Jul-06 12:10
Jun Du6-Jul-06 12:10 
AnswerRe: Passing a Class as a method parameter? Pin
Jun Du6-Jul-06 9:05
Jun Du6-Jul-06 9:05 
Questionadding icon to systemtray Pin
Mridang Agarwalla6-Jul-06 7:41
Mridang Agarwalla6-Jul-06 7:41 
AnswerRe: adding icon to systemtray Pin
Stefan Troschuetz6-Jul-06 8:15
Stefan Troschuetz6-Jul-06 8:15 
GeneralRe: adding icon to systemtray Pin
Mridang Agarwalla6-Jul-06 17:15
Mridang Agarwalla6-Jul-06 17:15 
GeneralRe: adding icon to systemtray Pin
Stefan Troschuetz6-Jul-06 20:56
Stefan Troschuetz6-Jul-06 20:56 
QuestionCopying UserControl Variables to another instance of the UserControl [modified] Pin
TheBlindWatchmaker6-Jul-06 7:39
TheBlindWatchmaker6-Jul-06 7:39 
AnswerRe: Copying UserControl Variables to another instance of the UserControl Pin
Dustin Metzgar6-Jul-06 7:55
Dustin Metzgar6-Jul-06 7:55 
GeneralRe: Copying UserControl Variables to another instance of the UserControl Pin
TheBlindWatchmaker6-Jul-06 8:13
TheBlindWatchmaker6-Jul-06 8:13 
GeneralRe: Copying UserControl Variables to another instance of the UserControl Pin
Dustin Metzgar6-Jul-06 8:28
Dustin Metzgar6-Jul-06 8:28 
QuestionTransferring data from database to database Pin
Stephen Hurt6-Jul-06 6:27
Stephen Hurt6-Jul-06 6:27 
AnswerRe: Transferring data from database to database Pin
led mike6-Jul-06 6:40
led mike6-Jul-06 6:40 
AnswerRe: Transferring data from database to database Pin
BambooMoon6-Jul-06 7:09
BambooMoon6-Jul-06 7:09 
Questionif/else statement for command button; object reference not set to an instance error Pin
leckey6-Jul-06 6:15
leckey6-Jul-06 6:15 
AnswerRe: if/else statement for command button; object reference not set to an instance error Pin
Guffa6-Jul-06 6:21
Guffa6-Jul-06 6:21 
GeneralRe: if/else statement for command button; object reference not set to an instance error Pin
leckey6-Jul-06 7:08
leckey6-Jul-06 7:08 

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.