DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

Stories recently tagged with 'foreach' Subscribe to this feed
2
kicks
submitted by JamesCurran2 12 days, 10 hours ago

honestillusion.com — There are 3 very handy list functions which make dealing with lists a breeze: Map, Filter and Reduce. But along the way of writing them, an important principle of IEnumerator<> comes up. read more...

Add a comment add a comment | category: | Views: 9
tags: , , , , | tag it

4
kicks
submitted by gregbeech 2 months, 7 days ago

gregbeech.com — Lots of people suggest a ForEach method would be a good addition to the base class framework. This is why I don't think it would be, even though our core library has an implementation of it. read more...

Add a comment add a comment | category: | Views: 35
tags: , | tag it

2
kicks
submitted by crpietschmann crpietschmann 6 months, 9 days ago

pietschsoft.com — One thing with the For Loop in JavaScript is it doesn't seem to be very well documented that you can use it to do an equivalent of a ForEach loop. Here's a short example of doing the ForEach loop equivalent in JavaScript using the "in" keyword. read more...

Add a comment add a comment | category: | Views: 118
tags: , , | tag it

40
kicks
published 9 months, 26 days ago, submitted by manovich 9 months, 27 days ago

dotnettipoftheday.org — Small example of how to use Action delegate to perform some action on all elements of a collection. read more...

Add a comment 9 comments | category: | Views: 34
tags: , , , | tag it

2
kicks
submitted by JamesCurran2 1 year, 3 months ago

honestillusion.com — A comparision of a foreach() loop and manually looping by calling GetEnumerator() and MoveNext() read more...

Add a comment add a comment | category: | Views: 2
tags: , , , , | tag it

13
kicks
published 1 year, 6 months ago, submitted by jeremyjarrell jeremyjarrell 1 year, 6 months ago

jeremyjarrell.com — Have you ever had a collection made of several types which all derive from the same base class? How many times have you needed to iterate the whole collection and check each element to make sure its the type that you want to work with? Here's how to do you type checking completely inline inside of the foreach loop so you only get the objects you want. read more...

Add a comment 1 comment | category: | Views: 0
tags: | tag it

34
kicks
published 1 year, 11 months ago, submitted by cls2deg cls2deg 1 year, 11 months ago

diditwith.net — Today I was iterating a List<int> using a foreach-loop and feeling a bit smug in knowing how much more performance-conscious I was being than if I'd tried doing the same thing with an ArrayList filled with ints. Thanks to the wonder of generics, the C# compiler neatly avoids numerous boxing operations by using a System.Collections.Generic.IEnumerator<int> instance instead of the older System.Collections.IEnumerator. Then I got to thinking: "is this really the fastest way?" Upon investigation, it turns that, no, it isn't the fastest way. read more...

Add a comment add a comment | category: | Views: 45
tags: , , , , | tag it

 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge