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

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
posted on Tuesday, January 24, 2006 7:30 AM

Feedback

# re: Printing 42 - A not so straightforward Boo way 3/9/2006 5:44 AM Christopher Painter
Hmmm, now all you have to do is write a snippet that randomly generates refactors every day code into Rube Goldberg statements.

# re: Printing 42 - A not so straightforward Boo way 5/29/2006 1:36 PM priyananda
Convoluted :P

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: