Monday, December 04, 2006
Array Searching in .NET 2.0
Again, Jeffrey Palermo has written a very instructive .NET article. This time he describes the FindAll method, which works on a array or similar collection, and returns an array containing the elements in the source array that fulfill a certain condition. He also shows how the delegate keyword can be used to create an anonymous function to specify the search condition. Ruby, Python, Lisp, and other languages commonly use techniques like this, but it is not normally seen in more mainstream programming. Whatever you might think of Microsoft, one good thing about .NET is how it is picking up a lot of functional elements and bringing them to the mainstream.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment