Amaranth is an open source roguelike written in C#. See this for more info. I no longer actively maintain this. You are welcome to fork it, but I'm not taking pull requests, fixing bugs, or hacking on it myself.