Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is there is some feature in C# that will act like #Define in C++ ??? Pin
Dan Neely8-Aug-07 3:43
Dan Neely8-Aug-07 3:43 
AnswerRe: Is there is some feature in C# that will act like #Define in C++ ??? Pin
User 66588-Aug-07 2:35
User 66588-Aug-07 2:35 
AnswerRe: Is there is some feature in C# that will act like #Define in C++ ??? Pin
PIEBALDconsult8-Aug-07 5:48
mvePIEBALDconsult8-Aug-07 5:48 
QuestionProblem- Server Busy...Switch/Retry Pin
Iftekhar Naim8-Aug-07 2:04
Iftekhar Naim8-Aug-07 2:04 
QuestionReflection, Invoking Methods Pin
glFrustum8-Aug-07 2:01
glFrustum8-Aug-07 2:01 
AnswerRe: Reflection, Invoking Methods Pin
kubben8-Aug-07 2:27
kubben8-Aug-07 2:27 
GeneralRe: Reflection, Invoking Methods Pin
glFrustum8-Aug-07 3:08
glFrustum8-Aug-07 3:08 
GeneralRe: Reflection, Invoking Methods Pin
kubben8-Aug-07 3:16
kubben8-Aug-07 3:16 
You can dynamically load an assemble and then invoke a method in it.

Step one. Create an interface that defines the methods you want to call.
Step two. Create an static readonly variable of that interface.
Step three. Use the variable to call methods.

Microsoft calls this a strategy.

If you want to be totally dynamic. There is a methodinfo class that you can get all the methods from a type.


Hope that helps.
Ben
GeneralRe: Reflection, Invoking Methods Pin
glFrustum8-Aug-07 4:08
glFrustum8-Aug-07 4:08 
AnswerRe: Reflection, Invoking Methods Pin
J4amieC8-Aug-07 3:32
J4amieC8-Aug-07 3:32 
GeneralRe: Reflection, Invoking Methods Pin
glFrustum8-Aug-07 4:00
glFrustum8-Aug-07 4:00 
GeneralRe: Reflection, Invoking Methods Pin
J4amieC8-Aug-07 4:43
J4amieC8-Aug-07 4:43 
GeneralRe: Reflection, Invoking Methods [modified] Pin
glFrustum8-Aug-07 4:47
glFrustum8-Aug-07 4:47 
QuestionHow to Split one big excel file in to smaller files? Pin
Guru_yogi8-Aug-07 1:37
Guru_yogi8-Aug-07 1:37 
AnswerRe: How to Split one big excel file in to smaller files? Pin
Justin Perez8-Aug-07 2:32
Justin Perez8-Aug-07 2:32 
GeneralRe: How to Split one big excel file in to smaller files? Pin
Guru_yogi8-Aug-07 2:59
Guru_yogi8-Aug-07 2:59 
GeneralRe: How to Split one big excel file in to smaller files? Pin
Justin Perez8-Aug-07 4:04
Justin Perez8-Aug-07 4:04 
QuestionDatagridview Pin
lesoftrons8-Aug-07 1:25
lesoftrons8-Aug-07 1:25 
AnswerRe: Datagridview [modified] Pin
Blue_Boy8-Aug-07 1:48
Blue_Boy8-Aug-07 1:48 
QuestionMessage Queue Error Pin
M. J. Jaya Chitra8-Aug-07 1:24
M. J. Jaya Chitra8-Aug-07 1:24 
AnswerRe: Message Queue Error Pin
Pete O'Hanlon8-Aug-07 1:35
mvePete O'Hanlon8-Aug-07 1:35 
GeneralRe: Message Queue Error Pin
M. J. Jaya Chitra8-Aug-07 1:50
M. J. Jaya Chitra8-Aug-07 1:50 
AnswerRe: Message Queue Error Pin
kubben8-Aug-07 2:32
kubben8-Aug-07 2:32 
GeneralRe: Message Queue Error Pin
M. J. Jaya Chitra8-Aug-07 2:51
M. J. Jaya Chitra8-Aug-07 2:51 
GeneralRe: Message Queue Error Pin
kubben8-Aug-07 2:59
kubben8-Aug-07 2:59 

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.