« Another Stab At Monad's Ship Vehicle | Main | The Blog is a Harsh Mistress »

June 15, 2005

Yet Another Monad Blogger

Arul Kumaravel, a dev lead on Monad, has a blog. And Lee "1337" Holmes has been blogging up a storm. Hmm, I suppose you could spell his name 53W704 337.

Here's a Monad factoid: if you want to get all the values for an enum, you can do:


(this example is for the System.IO.FileMode type, but it would work for any type). What you are doing is calling the static method GetValues() on the System.Enum class--that syntax of [typename]::method() is how you do that. The parameter to it is an instance of the type System.IO.FileMode--enclosing a type name in square brackets gets you an instance of the type (that's an instance of the type itself, not an instance of an object of that type. In .Net, types are also represented by objects).

Posted by AdamBa at June 15, 2005 11:14 PM

Trackback Pings

TrackBack URL for this entry: