Click here to Skip to main content
15,890,882 members
Home / Discussions / C#
   

C#

 
Questionhow to use delegate to call function and introduce function as content? Pin
smallkubi29-Nov-15 18:31
smallkubi29-Nov-15 18:31 
AnswerRe: how to use delegate to call function and introduce function as content? Pin
BillWoodruff29-Nov-15 20:04
professionalBillWoodruff29-Nov-15 20:04 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi29-Nov-15 20:42
smallkubi29-Nov-15 20:42 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Pete O'Hanlon29-Nov-15 21:39
mvePete O'Hanlon29-Nov-15 21:39 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
BillWoodruff29-Nov-15 22:52
professionalBillWoodruff29-Nov-15 22:52 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi30-Nov-15 2:27
smallkubi30-Nov-15 2:27 
AnswerRe: how to use delegate to call function and introduce function as content? Pin
Richard Deeming29-Nov-15 23:18
mveRichard Deeming29-Nov-15 23:18 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi30-Nov-15 3:02
smallkubi30-Nov-15 3:02 
Thank you very much,it 's near my requirement.
But one more requirement is that:

static void fun1(int x, Action call)
{
call();
}
take fun3(y,z) for example, call() is run fun3(y,z).
but if i want to run fun3(x,z) ,how to realize it? you know ,i want to change y value in fun1 to call fun2(int y) or fun3(int y,int z),because my code use loop to change y value in fun1,to let fun2 or fun3 be a minimum value.
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Richard Deeming30-Nov-15 3:17
mveRichard Deeming30-Nov-15 3:17 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi30-Nov-15 4:24
smallkubi30-Nov-15 4:24 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Eddy Vluggen30-Nov-15 4:55
professionalEddy Vluggen30-Nov-15 4:55 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi30-Nov-15 5:02
smallkubi30-Nov-15 5:02 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Eddy Vluggen30-Nov-15 7:03
professionalEddy Vluggen30-Nov-15 7:03 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi30-Nov-15 15:48
smallkubi30-Nov-15 15:48 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Eddy Vluggen30-Nov-15 23:16
professionalEddy Vluggen30-Nov-15 23:16 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi1-Dec-15 13:59
smallkubi1-Dec-15 13:59 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Eddy Vluggen1-Dec-15 23:59
professionalEddy Vluggen1-Dec-15 23:59 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi4-Dec-15 19:23
smallkubi4-Dec-15 19:23 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Richard Deeming7-Dec-15 0:32
mveRichard Deeming7-Dec-15 0:32 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi7-Dec-15 5:51
smallkubi7-Dec-15 5:51 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Richard Deeming7-Dec-15 6:55
mveRichard Deeming7-Dec-15 6:55 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi19-Dec-15 6:50
smallkubi19-Dec-15 6:50 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Richard Deeming4-Jan-16 2:21
mveRichard Deeming4-Jan-16 2:21 
QuestionOrder number of datagridview ? Pin
Member 245846729-Nov-15 15:36
Member 245846729-Nov-15 15:36 
AnswerRe: Order number of datagridview ? Pin
Eddy Vluggen30-Nov-15 2:28
professionalEddy Vluggen30-Nov-15 2:28 

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.