I am looking for a method to add custom keywords to the .net framework that offer "special" pre-complier benefits or are ignored by the compiler.
Example I would like to do something like this
public static factory class Foo<T>
{
public static create T Create();
}
I would like to add a pre-compile event that translates that code into functioning C#. I have already considered a few options (which I can not post here because I am limited to 1 hyperlink) none of them do exactly what I am looking to do. Does anyone else have any suggestions?