Does a C# preprocessing tool exist?

前端 未结 5 1536
南旧
南旧 2021-01-05 11:27

Does anyone know of a utility to preprocess a C# source file without compiling it, in a similar fashion to using the -E flag in GCC? I tried using GCC - it successfully proc

5条回答
  •  孤独总比滥情好
    2021-01-05 12:10

    Might it not be easier, and more idiomatically C#, to create interfaces, and have different implementations of those interfaces? One set that you can package up a as a library and redistribute?

提交回复
热议问题