Click here to Skip to main content
15,902,904 members
Home / Discussions / C#
   

C#

 
QuestionReading Contents from remote folder Pin
mfmaneef3-Jul-07 9:39
mfmaneef3-Jul-07 9:39 
Questioninserting xml fragment in an xml element Pin
goresus3-Jul-07 9:09
goresus3-Jul-07 9:09 
AnswerRe: inserting xml fragment in an xml element Pin
Abisodun3-Jul-07 9:47
Abisodun3-Jul-07 9:47 
GeneralRe: inserting xml fragment in an xml element Pin
goresus3-Jul-07 10:27
goresus3-Jul-07 10:27 
GeneralRe: inserting xml fragment in an xml element Pin
Abisodun3-Jul-07 11:36
Abisodun3-Jul-07 11:36 
QuestionUsing a propertyGrid control Pin
gapfulgence3-Jul-07 8:46
gapfulgence3-Jul-07 8:46 
QuestionHow to create many Gridviews Bind to a dataset Dynamically on run time. [modified] Pin
kibromg3-Jul-07 8:36
kibromg3-Jul-07 8:36 
QuestionConverting a variable to a method so it can be run (somewhat like Eval could do). Pin
Azad Giordano Ratzki3-Jul-07 7:09
professionalAzad Giordano Ratzki3-Jul-07 7:09 
Can someone help me!? Smile | :) I know in JavaScript I could use eval() to achieve this but I am not sure how to accomplish the same things in C#. Let's say I had a method in which one of the arguments was a string or any variable for that matter, and based on that variable passed to the method another method of the given name in the variable would run...(see example below), I am just getting into C# and any help with this would be much appreciated...!


public static void RunAMethod(string methodname)
{
methodname(); //method to run
}
///---- so I could do this from another method

RunAMethod("runwhatevermethodIwant");

///-----

Is this possible??? Sigh | :sigh: Frown | :(



AnswerRe: Converting a variable to a method so it can be run (somewhat like Eval could do). Pin
Le centriste3-Jul-07 7:13
Le centriste3-Jul-07 7:13 
AnswerRe: Converting a variable to a method so it can be run (somewhat like Eval could do). Pin
Dario Solera3-Jul-07 7:20
Dario Solera3-Jul-07 7:20 
GeneralRe: Converting a variable to a method so it can be run (somewhat like Eval could do). Pin
Azad Giordano Ratzki3-Jul-07 7:52
professionalAzad Giordano Ratzki3-Jul-07 7:52 
GeneralRe: Converting a variable to a method so it can be run (somewhat like Eval could do). Pin
Le centriste4-Jul-07 2:09
Le centriste4-Jul-07 2:09 
GeneralRe: Converting a variable to a method so it can be run (somewhat like Eval could do). Pin
Dario Solera4-Jul-07 2:51
Dario Solera4-Jul-07 2:51 
GeneralRe: Converting a variable to a method so it can be run (somewhat like Eval could do). Pin
Le centriste4-Jul-07 3:29
Le centriste4-Jul-07 3:29 
AnswerRe: Converting a variable to a method so it can be run (somewhat like Eval could do). Pin
Azad Giordano Ratzki3-Jul-07 7:47
professionalAzad Giordano Ratzki3-Jul-07 7:47 
QuestionUsing a 2D array as a DataSource Pin
Dewald3-Jul-07 6:54
Dewald3-Jul-07 6:54 
AnswerRe: Using a 2D array as a DataSource Pin
AdRoGe3-Jul-07 7:38
AdRoGe3-Jul-07 7:38 
Questionconnecting to sql questions Pin
crash8933-Jul-07 6:14
crash8933-Jul-07 6:14 
AnswerRe: connecting to sql questions Pin
Le centriste3-Jul-07 7:15
Le centriste3-Jul-07 7:15 
AnswerRe: connecting to sql questions Pin
mfmaneef3-Jul-07 9:53
mfmaneef3-Jul-07 9:53 
QuestionProblem with 2 forms Pin
mcaos3-Jul-07 6:09
professionalmcaos3-Jul-07 6:09 
AnswerRe: Problem with 2 forms Pin
Luc Pattyn3-Jul-07 6:30
sitebuilderLuc Pattyn3-Jul-07 6:30 
GeneralRe: Problem with 2 forms Pin
mcaos4-Jul-07 0:16
professionalmcaos4-Jul-07 0:16 
GeneralRe: Problem with 2 forms Pin
Luc Pattyn4-Jul-07 0:29
sitebuilderLuc Pattyn4-Jul-07 0:29 
AnswerRe: Problem with 2 forms Pin
thrakazog3-Jul-07 7:37
thrakazog3-Jul-07 7:37 

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.