Booish fun
Booish is a command interpreter for the Boo language, this means that it gives you the full power of Boo and the .NET framework at your finger tips.
I just needed to find the number of methods in mscorlib:
import System.Reflection
mscorlib = typeof(object).Assembly
methodCount = 0
typeCount = 0
for t in mscorlib.GetTypes():
typeCount +=1
for m in t.GetMethods():
methodCount += 1
print "Types ${typeCount}, Methods: ${methodCount}"
The result:
Comments
Why not methodCount += t.GetMethods().Length ? :)
Didn't think of it :-(
Something I didn't expect: mscorlib in vista returns a different value
Types 2318, Methods 27677
Comment preview