Freestyle Coding

Programming in the Real World

  Home  |   Contact  |   Syndication    |   Login
  49 Posts | 0 Stories | 38 Comments | 0 Trackbacks

News

Tag Cloud


Archives

Post Categories

Charity

Conferences

Professional

Projects

Social Networks

July 2012 Entries

I just stumbled on a cool trick that I had to share. I wanted to dynamically find and call initialization code. This led me to the use of attributes. Of course, once we find our method, we need to call it by using Method.Invoke( object, object). The problem was that most of the initialization code didn't touch each other. As such, I wanted to wrap the calls into threads. However, thread targets usually have to take either no parameters or one object. However, Invoke requires 2 parameters. The solution ......