Hi again,
I was a little bored this weekend and needed to add in some GA functionality to a side project. I felt like it would be best to create a simple executer to deal with the iterative behavior of a genetic algorithm. The executer take in funcs provided by the consumer and executes based on a simple iterative model. Below is what I came up with. Cheers!
...
Today I found my self hanging out after a sprint review with my partner in crime Kevin Rohling. TFS was down (not tfs's fault, but some other freak accident...) and I hadn't installed VS 2010 yet, so it seemed like the perfect time to do such things. I got everything up and running, and Kevin and I got into a discussion about Dynamics & performance. We made a quick lunch bet on which is faster, reflection or dynamics for simply setting a property. I figured reflection would be quicker, while Kevin thought dynamics would be faster. Well, I owe him lunch now. The code is below.
...
Basically, I wanted to build a method that gets an object from a data context whatever the primary key may look like, and whatever type that object may be. I wrote this code a little while ago when I was exploring the DynamicData libs. I was checking...