Click here to Skip to main content
15,916,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: Delegate casting/conversion Pin
harold aptroot21-Aug-10 5:42
harold aptroot21-Aug-10 5:42 
GeneralRe: Delegate casting/conversion Pin
DaveyM6921-Aug-10 5:59
professionalDaveyM6921-Aug-10 5:59 
GeneralRe: Delegate casting/conversion Pin
harold aptroot21-Aug-10 6:24
harold aptroot21-Aug-10 6:24 
GeneralRe: Delegate casting/conversion Pin
DaveyM6921-Aug-10 6:28
professionalDaveyM6921-Aug-10 6:28 
GeneralRe: Delegate casting/conversion Pin
harold aptroot21-Aug-10 6:33
harold aptroot21-Aug-10 6:33 
GeneralRe: Delegate casting/conversion Pin
DaveyM6921-Aug-10 6:40
professionalDaveyM6921-Aug-10 6:40 
GeneralRe: Delegate casting/conversion Pin
harold aptroot21-Aug-10 6:45
harold aptroot21-Aug-10 6:45 
QuestionThreading for multicore applications Pin
Steven Solberg21-Aug-10 5:20
Steven Solberg21-Aug-10 5:20 
GeneralRe: Threading for multicore applications Pin
harold aptroot21-Aug-10 5:44
harold aptroot21-Aug-10 5:44 
GeneralRe: Threading for multicore applications [modified] Pin
Steven Solberg21-Aug-10 6:13
Steven Solberg21-Aug-10 6:13 
GeneralRe: Threading for multicore applications Pin
harold aptroot21-Aug-10 6:42
harold aptroot21-Aug-10 6:42 
GeneralRe: Threading for multicore applications Pin
Steven Solberg21-Aug-10 6:51
Steven Solberg21-Aug-10 6:51 
GeneralRe: Threading for multicore applications Pin
harold aptroot21-Aug-10 7:02
harold aptroot21-Aug-10 7:02 
GeneralRe: Threading for multicore applications Pin
Steven Solberg21-Aug-10 7:05
Steven Solberg21-Aug-10 7:05 
GeneralRe: Threading for multicore applications Pin
harold aptroot21-Aug-10 7:11
harold aptroot21-Aug-10 7:11 
I was thinking about something like this:
C#
public delegate TResult Func<TResult>();
public delegate TResult Func<T, TResult>(T arg);
public delegate TResult Func<T1, T2, TResult>(T1 arg1, T2 arg2);
public delegate TResult Func<T1, T2, T3, TResult>(T1 arg1, T2 arg2, T3 arg3);
public delegate TResult Func<T1, T2, T3, T4, TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4);
public delegate TResult Func<T1, T2, T3, T4, T5, TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5);
public delegate TResult Func<T1, T2, T3, T4, T5, T6, TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6);

When you use them, you won't have to say new Func<type1, type2, type3 .. >(args), at least not since VS08 (this kind of type inference does not work yet in VS05)
GeneralRe: Threading for multicore applications Pin
Steven Solberg21-Aug-10 7:25
Steven Solberg21-Aug-10 7:25 
GeneralRe: Threading for multicore applications Pin
harold aptroot21-Aug-10 7:27
harold aptroot21-Aug-10 7:27 
GeneralRe: Threading for multicore applications Pin
Steven Solberg21-Aug-10 7:47
Steven Solberg21-Aug-10 7:47 
GeneralRe: Threading for multicore applications Pin
harold aptroot21-Aug-10 7:57
harold aptroot21-Aug-10 7:57 
GeneralRe: Threading for multicore applications Pin
Steven Solberg21-Aug-10 8:03
Steven Solberg21-Aug-10 8:03 
GeneralRe: Threading for multicore applications Pin
harold aptroot21-Aug-10 8:28
harold aptroot21-Aug-10 8:28 
AnswerRe: Threading for multicore applications Pin
Luc Pattyn21-Aug-10 10:02
sitebuilderLuc Pattyn21-Aug-10 10:02 
GeneralRe: Threading for multicore applications Pin
Steven Solberg22-Aug-10 8:17
Steven Solberg22-Aug-10 8:17 
GeneralRe: Threading for multicore applications Pin
Luc Pattyn22-Aug-10 8:47
sitebuilderLuc Pattyn22-Aug-10 8:47 
GeneralRe: Threading for multicore applications Pin
Steven Solberg22-Aug-10 8:57
Steven Solberg22-Aug-10 8:57 

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.