September 2015 Entries

An Upgrade on using a Predicate as a Key to a Dictionary

In an earlier post, I discussed using a Predicate<string> as a key to a Dictionary. Dictionary<Predicate<... string> : that utilizes a where clause to determine TRUE. This post is a slight upgrade to the concept where I make an (almost) 1-liner class and Extension Method that handles generics for both the subject-of-the-Predicate as well as the Type of the Key and the Type of the value in the pseudo-Dictionary. The Dictionary reference (ha ha) is used for syntax purposes and ......

«September»
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910