anonymous-delegates Questions
4
Solved
I'm trying to pass parameter, which is anonymous delegate (no input parameters, no return value), to function.
Something like this:
private function DoSomething(delegate cmd)
{
cmd();
}
Then,...
Bini asked 15/2, 2014 at 9:38
2
Solved
I have the following higher-order function:
public static Func<T, bool> Not<T>(Func<T, bool> otherFunc)
{
return arg => !otherFunc(arg);
}
And trying to call it like that:
...
Betteann asked 12/6, 2012 at 17:24
2
Solved
I'm building a message dispatch map in C# and mostly just playing around with some different approaches. I am curious about a performance difference I am measuring, but it's not obvious why from lo...
Focus asked 21/1, 2012 at 8:47
2
Solved
In Silverlight 4 I have a custom service class which has an asynchronous Completed event. Inside the Completed event I take the returned data and invoke a populate method via something like this:
...
England asked 19/7, 2010 at 19:56
3
Solved
In my program, we split up a large amount of data that needs to be looked over across four threads.
Thread one = new Thread(delegate() { NewMethod(recordsSplitIntoQuarters[0], param2, param3, par...
Lanfri asked 30/11, 2010 at 20:48
1
Solved
For the record: I found a similar question here but I have to elaborate a bit more on on the subject.
My concrete scenario is this:
In Silverlight 4, The myFrameworkElement.FindName("otherElement...
Schweitzer asked 27/1, 2010 at 13:27
5
Solved
Can you explain me code below :
private static List<Post> _Posts;
public static Post GetPost(Guid id)
{
return _Posts.Find(delegate(Post p)
{
return p.Id == id;
});
}
What is the poi...
Pectoral asked 4/2, 2009 at 21:18
1
© 2022 - 2024 — McMap. All rights reserved.