What Was I Thinking?

Follies & Foils of .NET Development
posts - 91 , comments - 331 , trackbacks - 0

My Links

News

Article Categories

Archives

Post Categories

Image Galleries

Check These Out

Gurus

October 2011 Entries

Google’s Public DNS Servers

Tired of ISP DNS service errors?  switch to use Google’s.  They are FAST and ALWAYS available.

Primary: 8.8.8.8

Secondary: 8.8.4.4

Posted On Wednesday, October 26, 2011 2:48 PM | Comments (1) | Filed Under [ General Geekiness ]

Performing Case-Insensitive joins using EXCEPT operator in LINQ
1: var daysOfWeek = new[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }; 2: var workDays = daysOfWeek.Except( new []{ "SUNDAY", "SaTURdaY"}); // Performs a case sensitive search and yields Sunday,Monday - Saturday. 3: workDays = daysOfWeek.Except(new[] { "SUNDAY", "SaTURdaY" },StringComparer.OrdinalIgn... // Performs a case insensitive search and yields Monday-Friday The except operator takes a comparer that tells it how to evaluate the two lists. Nice one ......

Posted On Wednesday, October 26, 2011 1:20 AM | Comments (1) |

Powered by: