DotNetShoutout - Stories tagged with enumerable
2
Shouts

C#/.NET Little Wonders: The SequenceEqual() Method

published 459 days, 48 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 461 days, 22 hours, 53 minutes ago
Sunday, February 19, 2012 11:34:36 PM GMT Friday, February 17, 2012 1:29:06 AM GMT
This post examines a handy method of the Enumerable class that allows you to check if two sequences of values are equal. Equality of two sequences is defined as two sequences of the same length with equivalent values in the same order from both sequences. (more)
category: Web Dev | clicked: 51 | 2 comments | | source: www.blackrabbitcoder.net
tags: .NET, Little Wonders, SequenceEqual, C#, IEnumerable, enumerable, CSharp, Linq
5
Shouts

C#/.NET Little Wonders: Empty(), DefaultIfEmpty(), and Count()

published 717 days, 5 hours, 4 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 721 days, 10 minutes ago
Monday, June 06, 2011 7:18:03 PM GMT Friday, June 03, 2011 12:12:32 AM GMT
Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. On this post I will finish examining the System.Linq methods in the static class Enumerable by examining two extension methods Count() and DefaultIfEmpty(), and one static method Empty(). (more)
category: Web Dev | clicked: 45 | comment | | source: www.blackrabbitcoder.net
tags: .NET, Empty, Little Wonders, C#, IEnumerable, enumerable, Any, Count, Linq, DefaultIfEmpty
5
Shouts

Enumerable.Skip vs Seq.skip

published 1000 days, 8 hours, 2 minutes ago posted by http://sterioma.pip.verisignlabs.com/http://sterioma.pip.verisignlabs.com/ 1001 days, 14 hours, 10 minutes ago
Friday, August 27, 2010 4:19:51 PM GMT Thursday, August 26, 2010 10:12:11 AM GMT
If you're an F# newbie like me(*) you'll eventually try to use Seq.skip and Seq.take to implement pagination, just like you used Enumerable.Skip and Enumerable.Take (or a IQueryable implementation of them) in C#. And more sooner than later you find out that they don't behave quite the same. If you haven't realized this yet, read on. Load up fsi.> let a = seq { 1..100 };; An F# seq is a System.IEnumerable, it's just a convenient alias. In C# this would be expressed as: var a = Enumerable.Range(1, 100);... (more)
category: How To | clicked: 0 | comment | | source: bugsquash.blogspot.com
tags: C#, enumerable, Linq, F#