Click here to Skip to main content
15,867,320 members
Home / Discussions / C#
   

C#

 
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 
Sorry, I'm not following you.

Do you mean you want multiple return values from your function? If so, you'll need to create a class or structure to contain them:
C#
public struct Fun3ReturnValues
{
    public int SomeValue { get; set; }
    public string SomeOtherValue { get; set; }
}
...
public static Fun3ReturnValues Fun3(int y, int z)
{
    return new Fun3ReturnValues
    {
        SomeValue = 42,
        SomeOtherValue = "Hello",
    };
}

Alternatively, you could use the Tuple class[^], but the meaning of the values wouldn't be as clear.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


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 
GeneralRe: Order number of datagridview ? Pin
Member 245846730-Nov-15 15:04
Member 245846730-Nov-15 15:04 
QuestionMonitoring FTP-Server incomming Pin
gpc4427-Nov-15 3:40
gpc4427-Nov-15 3:40 
QuestionRe: Monitoring FTP-Server incomming Pin
Richard MacCutchan27-Nov-15 3:44
mveRichard MacCutchan27-Nov-15 3:44 
AnswerRe: Monitoring FTP-Server incomming Pin
gpc4427-Nov-15 3:50
gpc4427-Nov-15 3:50 
GeneralRe: Monitoring FTP-Server incomming Pin
Richard MacCutchan27-Nov-15 4:03
mveRichard MacCutchan27-Nov-15 4:03 
GeneralRe: Monitoring FTP-Server incomming Pin
Dave Kreskowiak27-Nov-15 4:10
mveDave Kreskowiak27-Nov-15 4:10 
GeneralRe: Monitoring FTP-Server incomming Pin
jschell27-Nov-15 6:05
jschell27-Nov-15 6:05 
QuestionHow do I pass data from child of child form to parent form in C#? Pin
naouf1026-Nov-15 5:34
naouf1026-Nov-15 5:34 
AnswerRe: How do I pass data from child of child form to parent form in C#? Pin
OriginalGriff26-Nov-15 6:15
mveOriginalGriff26-Nov-15 6:15 
GeneralRe: How do I pass data from child of child form to parent form in C#? Pin
naouf1027-Nov-15 8:50
naouf1027-Nov-15 8:50 
GeneralRe: How do I pass data from child of child form to parent form in C#? Pin
OriginalGriff27-Nov-15 9:09
mveOriginalGriff27-Nov-15 9:09 
AnswerRe: How do I pass data from child of child form to parent form in C#? Pin
BillWoodruff26-Nov-15 12:07
professionalBillWoodruff26-Nov-15 12:07 
GeneralRe: How do I pass data from child of child form to parent form in C#? Pin
naouf1027-Nov-15 8:51
naouf1027-Nov-15 8:51 
AnswerRe: How do I pass data from child of child form to parent form in C#? Pin
susad7-Dec-15 3:05
susad7-Dec-15 3:05 
Questionhow to accelebrate chart when have many series? Pin
smallkubi25-Nov-15 13:55
smallkubi25-Nov-15 13: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.