Java's apt tool allows you to execute code at compile time based upon the annotations you place in your code. C# has attributes, which work like Java's annotations, but try as I might I can't seem to find a ready-made tool (ideally an open source one) that provides the same functionality for C# as apt does for Java. Does such a tool exist?

Edit
Report