c#中的代码生成器 [英] code generator in c#
问题描述
我的名字是Jasmin Solanki,我在bca和我们的项目中我想在c#.net中创建一个代码生成器,如果有人有想法那么告诉我并解释一下它
My name is Jasmin Solanki and i am in bca and in our project i want to make a code generator in c#.net if anyone have idea then tell me and explain me about it
推荐答案
首先,什么是代码生成?
根据 wiki :
First, what is Code Generation ?
As per wiki :
源代码生成是基于诸如模板之类的本体模型生成源代码的行为,并且是通过编程工具(如模板)完成的处理器或IDE。这些工具允许通过各种方式生成源代码。宏处理器,比如C预处理器,根据相对简单的规则替换源代码中的模式,是源代码生成器的一种简单形式。
Source code generation is the act of generating source code based on an ontological model such as a template and is accomplished with a programming tool such as a template processor or an IDE. These tools allow the generation of source code through any of various means. A macro processor, such as the C preprocessor, which replaces patterns in source code according to relatively simple rules, is a simple form of source code generator.
我建议你先看看在自动编程 [ ^ ]然后:
http://blogs.msdn.com/b/thottams/archive/2006/08/16/701872.aspx [ ^ ]
http://www.sirchristian.net/blog/2013/07/17 / code-generation-with-c-part-3 / [ ^ ]
-KR
I would suggest you to first look at Automatic Programming[^] and then this :
http://blogs.msdn.com/b/thottams/archive/2006/08/16/701872.aspx[^]
http://www.sirchristian.net/blog/2013/07/17/code-generation-with-c-part-3/[^]
-KR
1。您可以从以下网址获得一些想法: http://www.sirchristian .net / blog / 2013/02/19 / code-generation-and-you / [ ^ ]
2.尝试免费代码生成器 [ ^ ]
1. You may be able to get some ideas from :http://www.sirchristian.net/blog/2013/02/19/code-generation-and-you/[^]
2. Experiment with Free Code Generator[^]
这篇关于c#中的代码生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!