Click here to Skip to main content
15,844,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: compression Pin
Mycroft Holmes22-Dec-15 12:57
professionalMycroft Holmes22-Dec-15 12:57 
Questionhow can i use delegate to output several param in multi-thread? Pin
smallkubi21-Dec-15 4:29
smallkubi21-Dec-15 4:29 
AnswerRe: how can i use delegate to output several param in multi-thread? Pin
OriginalGriff21-Dec-15 4:53
mveOriginalGriff21-Dec-15 4:53 
GeneralRe: how can i use delegate to output several param in multi-thread? Pin
smallkubi21-Dec-15 5:44
smallkubi21-Dec-15 5:44 
AnswerRe: how can i use delegate to output several param in multi-thread? Pin
Eddy Vluggen21-Dec-15 7:32
professionalEddy Vluggen21-Dec-15 7:32 
GeneralRe: how can i use delegate to output several param in multi-thread? Pin
smallkubi21-Dec-15 16:13
smallkubi21-Dec-15 16:13 
GeneralRe: how can i use delegate to output several param in multi-thread? Pin
Eddy Vluggen22-Dec-15 1:18
professionalEddy Vluggen22-Dec-15 1:18 
AnswerRe: how can i use delegate to output several param in multi-thread? Pin
BillWoodruff21-Dec-15 19:20
professionalBillWoodruff21-Dec-15 19:20 
I think what you want here is a way to "compose" a Func that you can use later
C#
// sample Struct, but you could use a Class also
public struct TestStruct
{
    int X;
    int Y;

    public TestStruct(int x, int y)
    {
        X = x;
        Y = y;
    }
}

// define the Func
private Func<int, int, TestStruct> TestFunc = (x, y) =>
{
    return new TestStruct(x * 4, y * 5);
};

private TestStruct testStruct1;

// test in some method
testStruct1 = TestFunc(100, 200);

«Tell me and I forget. Teach me and I remember. Involve me and I learn.» Benjamin Franklin

QuestionOPC / Rockwell for automation problem Pin
Roberto64_Ge21-Dec-15 1:07
Roberto64_Ge21-Dec-15 1:07 
Questionc# classes methods Pin
Member 1221945620-Dec-15 15:55
Member 1221945620-Dec-15 15:55 
AnswerRe: c# classes methods Pin
User 418025420-Dec-15 16:13
User 418025420-Dec-15 16:13 
GeneralRe: c# classes methods Pin
Member 1221945620-Dec-15 16:17
Member 1221945620-Dec-15 16:17 
GeneralRe: c# classes methods Pin
OriginalGriff20-Dec-15 20:53
mveOriginalGriff20-Dec-15 20:53 
AnswerRe: c# classes methods Pin
OriginalGriff20-Dec-15 20:58
mveOriginalGriff20-Dec-15 20:58 
AnswerRe: c# classes methods Pin
BillWoodruff21-Dec-15 0:42
professionalBillWoodruff21-Dec-15 0:42 
QuestionIncorrect syntax near ',' Pin
Member 1144944719-Dec-15 6:00
Member 1144944719-Dec-15 6:00 
AnswerRe: Incorrect syntax near ',' Pin
Dave Kreskowiak19-Dec-15 6:07
mveDave Kreskowiak19-Dec-15 6:07 
GeneralRe: Incorrect syntax near ',' Pin
Member 1144944719-Dec-15 11:18
Member 1144944719-Dec-15 11:18 
GeneralRe: Incorrect syntax near ',' Pin
Dave Kreskowiak19-Dec-15 12:48
mveDave Kreskowiak19-Dec-15 12:48 
GeneralRe: Incorrect syntax near ',' Pin
Foothill21-Dec-15 7:00
professionalFoothill21-Dec-15 7:00 
GeneralRe: Incorrect syntax near ',' Pin
Dave Kreskowiak21-Dec-15 8:09
mveDave Kreskowiak21-Dec-15 8:09 
QuestionHow can I include house address finder in my application? Pin
naouf1019-Dec-15 4:21
naouf1019-Dec-15 4:21 
AnswerRe: How can I include house address finder in my application? Pin
OriginalGriff19-Dec-15 5:08
mveOriginalGriff19-Dec-15 5:08 
GeneralRe: How can I include house address finder in my application? Pin
Mycroft Holmes20-Dec-15 13:01
professionalMycroft Holmes20-Dec-15 13:01 
AnswerRe: How can I include house address finder in my application? Pin
Gerry Schmitz19-Dec-15 9:59
mveGerry Schmitz19-Dec-15 9:59 

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.