Click here to Skip to main content
15,906,628 members
Home / Discussions / C#
   

C#

 
Questionhow can i get the root folder for my program after setup Pin
ahmedhassan9617-Sep-08 11:26
ahmedhassan9617-Sep-08 11:26 
AnswerRe: how can i get the root folder for my program after setup Pin
DaveyM6917-Sep-08 11:35
professionalDaveyM6917-Sep-08 11:35 
GeneralRe: how can i get the root folder for my program after setup Pin
ahmedhassan9617-Sep-08 12:21
ahmedhassan9617-Sep-08 12:21 
QuestionMigration from C# to java Pin
Monika Patel17-Sep-08 10:41
Monika Patel17-Sep-08 10:41 
QuestionHow to use rtf table of contents in RichTextBox Pin
panoskatws17-Sep-08 9:45
panoskatws17-Sep-08 9:45 
AnswerRe: How to use rtf table of contents in RichTextBox Pin
Dave Kreskowiak17-Sep-08 10:31
mveDave Kreskowiak17-Sep-08 10:31 
QuestionCodepages and character encoding Pin
Miszou17-Sep-08 9:09
Miszou17-Sep-08 9:09 
QuestionBuilding a testing class Pin
OneLessJpeg17-Sep-08 9:02
OneLessJpeg17-Sep-08 9:02 
I have some functions i am trying to compare for speed and want to run many iterations of them. I can see in the future that i could need to do the same thing again so i want to build a generic testing class.

My idea would be to write something like:
mainFunction
{
  functionsToTest = (funk1, funk2, funkN)

  foreach functionsToTest
    for "itterations"
      call function
}


The issue i run into is that i would need to pass a function as a parameter to one of the functions in my class. I know this can be done in C++ so i assume there has to be some way to do this in C#.

My question is how can i pass a function as a parameter? It would also be cool if i could put references to functions in a List<>, but I'll take the moon before the stars.
AnswerRe: Building a testing class Pin
Pete O'Hanlon17-Sep-08 9:07
mvePete O'Hanlon17-Sep-08 9:07 
QuestionDetermining type compatiblity Pin
Clive D. Pottinger17-Sep-08 8:27
Clive D. Pottinger17-Sep-08 8:27 
AnswerRe: Determining type compatiblity Pin
Pete O'Hanlon17-Sep-08 9:11
mvePete O'Hanlon17-Sep-08 9:11 
AnswerRe: Determining type compatiblity Pin
User 665817-Sep-08 9:23
User 665817-Sep-08 9:23 
GeneralRe: Determining type compatiblity Pin
Clive D. Pottinger17-Sep-08 9:51
Clive D. Pottinger17-Sep-08 9:51 
QuestionreSetting old values Pin
netJP12L17-Sep-08 7:30
netJP12L17-Sep-08 7:30 
AnswerRe: reSetting old values Pin
Jimmanuel17-Sep-08 9:26
Jimmanuel17-Sep-08 9:26 
Questionbrush problem... Pin
Sajjad Izadi17-Sep-08 6:30
Sajjad Izadi17-Sep-08 6:30 
AnswerRe: brush problem... Pin
Syed Mehroz Alam17-Sep-08 7:04
Syed Mehroz Alam17-Sep-08 7:04 
GeneralRe: brush problem... Pin
Sajjad Izadi17-Sep-08 7:17
Sajjad Izadi17-Sep-08 7:17 
AnswerRe: brush problem... Pin
Harvey Saayman17-Sep-08 8:05
Harvey Saayman17-Sep-08 8:05 
Joke[ot] Pin
Guffa17-Sep-08 8:36
Guffa17-Sep-08 8:36 
GeneralRe: [ot] Pin
Harvey Saayman17-Sep-08 8:52
Harvey Saayman17-Sep-08 8:52 
Questionformating numbers from strings Pin
brsecu17-Sep-08 4:55
brsecu17-Sep-08 4:55 
AnswerRe: formating numbers from strings PinPopular
Scott Dorman17-Sep-08 5:06
professionalScott Dorman17-Sep-08 5:06 
AnswerRe: formating numbers from strings Pin
Blue_Boy17-Sep-08 9:31
Blue_Boy17-Sep-08 9:31 
QuestionSoftware Design.. Whats your approach? Pin
JPWheeler17-Sep-08 3:53
JPWheeler17-Sep-08 3:53 

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.