Click here to Skip to main content
15,918,967 members
Home / Discussions / C#
   

C#

 
AnswerRe: Returning 3 value from function Pin
Bassam Saoud19-Jan-07 21:35
Bassam Saoud19-Jan-07 21:35 
AnswerRe: Returning 3 value from function Pin
Stefan Troschuetz19-Jan-07 21:56
Stefan Troschuetz19-Jan-07 21:56 
GeneralRe: Returning 3 value from function Pin
Christian Graus19-Jan-07 22:35
protectorChristian Graus19-Jan-07 22:35 
GeneralRe: Returning 3 value from function Pin
Stefan Troschuetz19-Jan-07 22:49
Stefan Troschuetz19-Jan-07 22:49 
AnswerRe: Returning 3 value from function Pin
Christian Graus19-Jan-07 22:28
protectorChristian Graus19-Jan-07 22:28 
GeneralRe: Returning 3 value from function Pin
Mircea Puiu19-Jan-07 22:52
Mircea Puiu19-Jan-07 22:52 
AnswerRe: Returning 3 value from function Pin
Mircea Puiu19-Jan-07 22:54
Mircea Puiu19-Jan-07 22:54 
AnswerRe: Returning 3 value from function Pin
Guffa20-Jan-07 0:45
Guffa20-Jan-07 0:45 
Yes, you can return a data set. You can also return a data table, an array, a list or a collection.

A lot of people have suggested using ref or out, but I would advice against those in this case. They are more funcional than object oriented, and are mostly used for interfacing with components written in other languages and for perfomance tweaking. It's for example used in the Int32.TryParse method to avoid creating an object as return value, but you are creating so many objects in you function anyway that there is no reason for you to avoid creating another one.

---
Year happy = new Year(2007);

AnswerRe: Returning 3 value from function Pin
David Domingues22-Jan-07 5:12
David Domingues22-Jan-07 5:12 
Questionauto screen resolution for c# window application Pin
illusionarylife19-Jan-07 20:04
illusionarylife19-Jan-07 20:04 
AnswerRe: auto screen resolution for c# window application Pin
Stefan Troschuetz19-Jan-07 21:59
Stefan Troschuetz19-Jan-07 21:59 
AnswerRe: auto screen resolution for c# window application Pin
Monjurul Habib5-Jun-11 6:34
professionalMonjurul Habib5-Jun-11 6:34 
QuestionUpload textfile to server using c# and Asp.net2 Pin
ALAQUNAIBI19-Jan-07 20:00
ALAQUNAIBI19-Jan-07 20:00 
AnswerRe: Upload textfile to server using c# and Asp.net2 Pin
dabuskol19-Jan-07 20:08
dabuskol19-Jan-07 20:08 
Questionexit a function Pin
rzvme19-Jan-07 19:39
rzvme19-Jan-07 19:39 
AnswerRe: exit a function Pin
dabuskol19-Jan-07 20:10
dabuskol19-Jan-07 20:10 
AnswerRe: exit a function Pin
Bassam Saoud19-Jan-07 21:38
Bassam Saoud19-Jan-07 21:38 
QuestionC# Distribution Pin
picstudent19-Jan-07 19:09
picstudent19-Jan-07 19:09 
AnswerRe: C# Distribution Pin
Christian Graus19-Jan-07 19:24
protectorChristian Graus19-Jan-07 19:24 
GeneralRe: C# Distribution [modified] Pin
picstudent19-Jan-07 19:51
picstudent19-Jan-07 19:51 
QuestionWhich XML classes to use? Pin
Lord Kixdemp19-Jan-07 14:55
Lord Kixdemp19-Jan-07 14:55 
AnswerRe: Which XML classes to use? Pin
Phillip M. Hoff19-Jan-07 17:50
Phillip M. Hoff19-Jan-07 17:50 
GeneralRe: Which XML classes to use? Pin
Lord Kixdemp24-Jan-07 8:24
Lord Kixdemp24-Jan-07 8:24 
QuestionC# decompiler? Pin
Eddymvp19-Jan-07 14:50
Eddymvp19-Jan-07 14:50 
AnswerRe: C# decompiler? Pin
prolibertine19-Jan-07 15:55
prolibertine19-Jan-07 15:55 

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.