Adventures of a Setup Developer

my musings about setups and other things in my life

  Home  |   Contact  |   Syndication    |   Login
  30 Posts | 1 Stories | 87 Comments | 71 Trackbacks

News

Article Categories

Archives

Post Categories

General

Regular Reads

Tools

Tuesday, January 24, 2006 #

I was recently working with Reflection and Boo and thought this was funny. Hey.. nobody told life is simple right. So, here it goes. :-)

i as int
i=i.GetType().GetMethod("Parse",[typeof(string)].ToArray(typeof(System.Type))).Invoke(null,["42"].ToArray())
print "Answer to the question of life, universe and everything is ", i
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati