Templates in C#

Posted by John Doe on Stack Overflow See other posts from Stack Overflow or by John Doe
Published on 2010-05-04T21:23:58Z Indexed on 2010/05/04 21:28 UTC
Read the original article Hit count: 223

Filed under:
|

I know generics are in C# to fulfill a role similar to C++ templates but I really need a way to generate some code at compile time - in this particular situation it would be very easy to solve the problem with C++ templates.

Does anyone know of any alternatives? Perhaps a VS plug-in that preprocesses the code or something like that? It doesn't need to be very sophisticated, I just need to generate some methods at compile time.

© Stack Overflow or respective owner

Related posts about c#

Related posts about templates