By tag: AnonymousMethods
0
kicks
C# Anonymous Methods
C# allows the declaration of delegates. These hold method references that may be changed at run-time and are essential for creating events. It is often the case that the delegate is never changed. In these cases, anonymous methods can simplify code.
0
kicks
The Power of the Predicate<T>
The very flexible generic collection List<T> contains several methods that take a predicate as it's parameter. Coupled with Anonymous Methods this provides powerfully concise code for filtering, searching and sorting your collections.
0
kicks
C# Threads using anonymous methods
Short "how to" talks about anonymous methods in c# to simplify a thread creation.
0
kicks
Anonymous Methods vs Threads
What happens when you combine anonymous methods and threads - a things you need to be aware or you will encounter a strange behavior that will be hard to explain.
0
kicks
The Power of Anonymous Methods in C#
Anonymous methods are a new feature in C# 2.0 that allow you to hook an action directly to an event as opposed to having a separate event handler. For example, when a user clicks a button and you need to pop-up a MessageBox, you could handle it the standard way with a delegate and an event handler,...
0
kicks
The Power of Anonymous Methods in C#
Anonymous methods are a new feature in C# 2.0 that allow you to hook an action directly to an event as opposed to having a separate event handler. They can also be used anytime a method accepts a delegate as a parameter. This article provides a glimpse into how anonymous methods can be used in C#....
0
kicks
Sorting Generic Lists With Anonymous Methods and Reflection
Sorting Generic Lists with Anonymous Methods and Reflection
0
kicks
Continuation Passing Style & Anonymous Methods
C# anonymous methods allow programming in the versatile continuation passing style to be done conveniently, concisely and elegantly.
0
kicks
Using Anonymous Methods For Control.Invoke/Control.BeginInvoke
Brief overview of using anonymous methods for Control.Invoke and Control.BeginInvoke scenarios using the built in MethodInvoker delegate provided by the BCL.
0
kicks
Event handling with anonymous methods in C# 2.0
One of the nicest things about the new anonymous methods is how simple event handling has become. This simple approach will save you many lines of code.