Click here to Skip to main content
15,917,793 members
Home / Discussions / C#
   

C#

 
GeneralRe: "On screen keyboard" user control Pin
Alan Zhao23-May-04 5:59
Alan Zhao23-May-04 5:59 
GeneralRe: "On screen keyboard" user control Pin
Marc Clifton23-May-04 11:39
mvaMarc Clifton23-May-04 11:39 
GeneralSemi-crosspost: Recompiling - but the assembly isn't updated Pin
Jan R Hansen22-May-04 13:25
Jan R Hansen22-May-04 13:25 
GeneralRe: Semi-crosspost: Recompiling - but the assembly isn't updated Pin
Marc Clifton22-May-04 14:54
mvaMarc Clifton22-May-04 14:54 
GeneralRe: Semi-crosspost: Recompiling - but the assembly isn't updated Pin
Jan R Hansen22-May-04 22:23
Jan R Hansen22-May-04 22:23 
GeneralRe: Semi-crosspost: Recompiling - but the assembly isn't updated Pin
Heath Stewart23-May-04 4:01
protectorHeath Stewart23-May-04 4:01 
GeneralReturning multiple values from methods Pin
bjoernen22-May-04 12:44
bjoernen22-May-04 12:44 
GeneralRe: Returning multiple values from methods Pin
Colin Angus Mackay22-May-04 13:12
Colin Angus Mackay22-May-04 13:12 
GeneralRe: Returning multiple values from methods Pin
bjoernen22-May-04 21:53
bjoernen22-May-04 21:53 
GeneralRe: Returning multiple values from methods Pin
Marc Clifton22-May-04 15:03
mvaMarc Clifton22-May-04 15:03 
GeneralRe: Returning multiple values from methods Pin
bjoernen22-May-04 22:18
bjoernen22-May-04 22:18 
Yes, I use those too, but under protest. Wink | ;-)

But I still find it counter-productive to be forced to create output structs. Nobody uses input structs, because the C# language handles a collection of input parameters elegantly. In my mind output result values ought to be handled the same way.

Lets say you have 10 different methods that each return a result object, but from different classes, for instance Point, Rectangle, ArrayList, etc (some of the framework structs and classes). Lets say you also want to be able to tell if the operation went ok, for all those methods, so you'll need a second output parameter of type bool. Would you go about creating 10 output structs to solve that? Or would you use "out"-parameters? Neither is both elegant and productive.


Regards,
Björn Morén
Stockholm, Sweden

GeneralRe: Returning multiple values from methods Pin
Marc Clifton23-May-04 2:59
mvaMarc Clifton23-May-04 2:59 
GeneralRe: Returning multiple values from methods Pin
bjoernen23-May-04 5:43
bjoernen23-May-04 5:43 
GeneralRe: Returning multiple values from methods Pin
Heath Stewart23-May-04 3:59
protectorHeath Stewart23-May-04 3:59 
GeneralRe: Returning multiple values from methods Pin
leppie22-May-04 19:45
leppie22-May-04 19:45 
GeneralRe: Returning multiple values from methods Pin
Heath Stewart23-May-04 3:56
protectorHeath Stewart23-May-04 3:56 
GeneralRe: Returning multiple values from methods Pin
bjoernen23-May-04 6:03
bjoernen23-May-04 6:03 
GeneralRe: Returning multiple values from methods Pin
MilesAhead24-May-04 7:34
MilesAhead24-May-04 7:34 
GeneralCausing a time delay within a method Pin
Anonymous22-May-04 11:57
Anonymous22-May-04 11:57 
GeneralRe: Causing a time delay within a method Pin
bjoernen22-May-04 12:55
bjoernen22-May-04 12:55 
GeneralRe: Causing a time delay within a method Pin
Colin Angus Mackay22-May-04 12:56
Colin Angus Mackay22-May-04 12:56 
GeneralRe: Causing a time delay within a method Pin
Marc Clifton22-May-04 15:00
mvaMarc Clifton22-May-04 15:00 
GeneralStackFrame Pin
TuringTest122-May-04 11:16
TuringTest122-May-04 11:16 
GeneralRe: StackFrame Pin
Colin Angus Mackay22-May-04 13:03
Colin Angus Mackay22-May-04 13:03 
GeneralRe: StackFrame Pin
Marc Clifton22-May-04 15:11
mvaMarc Clifton22-May-04 15:11 

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.