C#/.NET Little Wonders: The Generic Action Delegates(www.blackrabbitcoder.net)

submitted by BlackRabbitCoderBlackRabbitCoder(661) 6 months, 22 days ago

Back in one of my three original “Little Wonders” Trilogy of posts, I had listed generic delegates as one of the Little Wonders of .NET. Later, someone posted a comment saying said that they would love more detail on the generic delegates and their uses, since my original entry just scratched the surface on them. So over the next few weeks, I’ll be looking at some of the handy generic delegates built into .NET. For this week, I’ll give a quick overview of delegates and their usefulness. Then I’ll launch into a look at the Action generic delegates and how they can be used to support more generic, reusable algorithms and classes.

2 comments |category: |Views: 340

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 6 months, 21 days ago 0

I'm actually a little upset at myself for never taking advantage of this...I'll need to remedy that for the future.

Reply

posted by NoldorinNoldorin(829) replied to dpetersondpeterson(4397), 6 months, 21 days ago 0

Heh, I'm surprised. This is a constant feature in my code ever since lambda expressions/generic Func objects came into .NET. :-) I guess you don't really lose anything except type safety though...

Reply

information Login or create an account to comment on this story