المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : C #define to C# constant converstion tool



C# Programming
06-11-2009, 07:00 PM
I am looking at a series of header files with thousands of #define statements in them. I have been tasked with writing a utility that utilizes these defines in C#. I know that I can manually convert these, but unfortunately they are living files and I would have a maintenance nightmare.

My question is does anyone have or used any utilities that can be run has a pre-build process from inside VS that converts header file #define to C# constant?

Any help on this is greatly appreciated!

~Mike