Friday, November 14, 2008 #

Integer Comparison with ArrayList

Today I needed to compare some IDs contained in two generic lists (both lists held a different type). I wanted to check to see if both lists had the same set of IDs. Since both lists contained different types, I couldn’t just compare them as easily as I wanted to. So, I created a method to just take in those types and add those IDs to 2 arrays and just compare the arrays instead. Always a pain in the ass doing comparisons of course unless you’re using Linq. Unfortunately at my new job, we a

posted @ Friday, November 14, 2008 10:00 PM | Feedback (0)