Stories recently tagged with 'AnonymousMethods'

C# Anonymous Methods(blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4024) 3 years, 7 months ago

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. read more...

add a comment |category: |Views: 10

tags: another

The Power of the Predicate<T>(randypatterson.com)

submitted by jsmithjsmith(160) 4 years, 4 months ago

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. read more...

1 comment |category: |Views: 260

tags: another

C# Threads using anonymous methods(coders4fun.com)

submitted by inandreainandrea(115) 4 years, 4 months ago

Short "how to" talks about anonymous methods in c# to simplify a thread creation. read more...

add a comment |category: |Views: 52

tags: another

Anonymous Methods vs Threads(vaultofthoughts.net)

submitted by mikeonmikeon(5200) 4 years, 7 months ago

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. read more...

add a comment |category: |Views: 14

tags: another

The Power of Anonymous Methods in C#(weblogs.asp.net)

submitted by antnyantny(55) 4 years, 9 months ago

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, or you could hook the action to perform directly to the Click event using an anonymous method as shown next read more...

add a comment |category: |Views: 34

tags: another

The Power of Anonymous Methods in C# (weblogs.asp.net)

submitted by dwahlindwahlin(1450) 4 years, 9 months ago

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#. read more...

add a comment |category: |Views: 4

tags: another

Sorting Generic Lists With Anonymous Methods and Reflection(kevincastle.net)

submitted by kcastlekcastle(235) 4 years, 9 months ago

Sorting Generic Lists with Anonymous Methods and Reflection read more...

add a comment |category: |Views: 16

tags: another

Continuation Passing Style & Anonymous Methods(wesnerm.blogs.com)

submitted by wesnermwesnerm(220) 4 years, 11 months ago

C# anonymous methods allow programming in the versatile continuation passing style to be done conveniently, concisely and elegantly. read more...

2 comments |category: |Views: 59

tags: another

Using Anonymous Methods For Control.Invoke/Control.BeginInvoke(jaysonknight.com)

submitted by x.staticx.static(435) 4 years, 11 months ago

Brief overview of using anonymous methods for Control.Invoke and Control.BeginInvoke scenarios using the built in MethodInvoker delegate provided by the BCL. read more...

add a comment |category: |Views: 297

tags: another

Event handling with anonymous methods in C# 2.0(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 3 months ago

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. read more...

add a comment |category: |Views: 222

tags: another