c# rewrites for windows