Links of Interest
Main
Download
Prerequisites
Screenshots

Articles/Code Snippets
DBP Warmup Entries
Blog feed icon
Contact/Feedback

Quick Downloads:
bullet Diaspora
bullet XNA Requirements Installer

External Links
Heather [layout designer]
XNA

Enum Looping
Thanks to George Clingerman I learned how to enumerate through enums in a simple way. However, his code is in VB, so I decided to post a c# version of what he has written about in case anybody doesn't know how to convert from VB.

enum Direction{Up, Down, Left, Right}

void MoveInAllDirections()
{
    Array aDirections = System.Enum.GetValues(typeof(Direction));
    foreach(Direction d in aDirections)
        MoveIt(d);
}

void MoveIt(Direction d)
{
    //Move! Move!
    switch(d)
    {
        case Direction.Up:
        //...
    }
}

This website and its content are the property of ascii reversal of the ascii of the hex reversal of the hex of the bit inverse of 11001111 11001111 11001000 11001010 11000110 11001001 10111100 11001001 10111100 11001001 11000110 11001001 11001110 11001001 10111011 11001001 11001111 11001101 10111100 11001011 11000110 11001001.