Browse by Tags

All Tags » LINQ (RSS)

Tweaking log4net Settings Programmatically

A few months ago, I had to dynamically add a log4net appender at runtime .  Now I find myself in another log4net situation.  I need to modify the configuration of my appenders at runtime. My client requires all files generated by our applications...
Posted by PSteele | 2 comment(s)
Filed under: , ,

Ann Arbor Day of .NET 2010 Recap

Had a great time at the Ann Arbor Day of .NET on Saturday.  Lots of great speakers and topics.  And chance to meet up with friends you usually only communicate with via email/twitter. My Presentation I presented " Getting up to speed with...
Posted by PSteele | with no comments

Talks Submitted for Ann Arbor Day of .NET 2010

Just submitted my session abstracts for Ann Arbor's Day of .NET 2010 .   Getting up to speed with .NET 3.5 -- Just in time for 4.0! Yes, C# 4.0 is just around the corner.  But if you haven't had the chance to use C# 3.5 extensively, this session...

Flattening a Jagged Array with LINQ

Today I had to flatten a jagged array .  In my case, it was a string[][] and I needed to make sure every single string contained in that jagged array was set to something (non-null and non-empty).  LINQ made the flattening very easy.  In...
Posted by PSteele | 3 comment(s)
Filed under: ,

Lookups vs. Dictionaries

Donn Felker has a great post that explains the different uses of LINQ's ToLookup and ToDictionary .  Check it out! Technorati Tags: .NET , LINQ
Posted by PSteele | with no comments
Filed under: ,

Looking Forward to 2010

Yes, the first month of 2010 is almost gone and I'm just now getting around blogging about the past year and the year ahead.  I guess time management should be on my to-do list for this year? The CodeMash Website One of the coolest projects I've...

LINQ and Homework

My daughter asked me to check her homework today.  One of the math problems was: A book has 352 pages.  How many 4's were used to print all of the page numbers. She got 35.  She explained how she arrived at that number and while her logic...
Posted by PSteele | 14 comment(s)
Filed under: ,

LINQ2SQL: SubmitChanges() doesn't do anything?

Dear Linq2SQL, I'm sorry.  It was a mistake.  I was just doing a simple demo and forgot to define the primary key on a table.  You were so nice to generate my class definitions for me without complaining.  You queried the data and...
Posted by PSteele | 4 comment(s)
Filed under: ,

Comparing Two Arrays

I was looking at some old code today that was checking if two byte arrays had the same data in them.  It was a simple loop that compared each element.  I recalled my blog post from November of last year about comparing collections/arrays in...
Posted by PSteele | 6 comment(s)
Filed under: ,

LINQ: Quickly Create Dictionaries with ToDictionary

Donn Felker recently blogged about a neat little extension method in LINQ called Any() .  If you simply want to know if a sequence contains any elements, many people use ".Count() > 0" which will walk the entire sequence to compute the...
Posted by PSteele | 1 comment(s)
Filed under: ,
More Posts