A port of boomerang to C#