Wie ruft man eine Funktion auf, die einen Lambda-Ausdruck übergibt?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie ruft man eine Funktion auf, die einen Lambda-Ausdruck übergibt?

by Guest » 22 Dec 2024, 16:37

Wenn ich so etwas hätte:
public void add(func
val)
{
textval = val; // val should be hello
}

Und ich möchte diese Funktion aufrufen
add((val) => "hello")

Top