• <small id='sxvYp'></small><noframes id='sxvYp'>

      <bdo id='sxvYp'></bdo><ul id='sxvYp'></ul>

    <i id='sxvYp'><tr id='sxvYp'><dt id='sxvYp'><q id='sxvYp'><span id='sxvYp'><b id='sxvYp'><form id='sxvYp'><ins id='sxvYp'></ins><ul id='sxvYp'></ul><sub id='sxvYp'></sub></form><legend id='sxvYp'></legend><bdo id='sxvYp'><pre id='sxvYp'><center id='sxvYp'></center></pre></bdo></b><th id='sxvYp'></th></span></q></dt></tr></i><div id='sxvYp'><tfoot id='sxvYp'></tfoot><dl id='sxvYp'><fieldset id='sxvYp'></fieldset></dl></div>

      <tfoot id='sxvYp'></tfoot>
        <legend id='sxvYp'><style id='sxvYp'><dir id='sxvYp'><q id='sxvYp'></q></dir></style></legend>

        预处理器中的 C# 宏定义

        时间:2023-08-24
        <legend id='dDUHI'><style id='dDUHI'><dir id='dDUHI'><q id='dDUHI'></q></dir></style></legend>
              <tbody id='dDUHI'></tbody>
              • <bdo id='dDUHI'></bdo><ul id='dDUHI'></ul>
                <i id='dDUHI'><tr id='dDUHI'><dt id='dDUHI'><q id='dDUHI'><span id='dDUHI'><b id='dDUHI'><form id='dDUHI'><ins id='dDUHI'></ins><ul id='dDUHI'></ul><sub id='dDUHI'></sub></form><legend id='dDUHI'></legend><bdo id='dDUHI'><pre id='dDUHI'><center id='dDUHI'></center></pre></bdo></b><th id='dDUHI'></th></span></q></dt></tr></i><div id='dDUHI'><tfoot id='dDUHI'></tfoot><dl id='dDUHI'><fieldset id='dDUHI'></fieldset></dl></div>

                <small id='dDUHI'></small><noframes id='dDUHI'>

                <tfoot id='dDUHI'></tfoot>

                  本文介绍了预处理器中的 C# 宏定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  C# 是否能够像在 C 编程语言中那样使用预处理器语句定义宏?我想简化某些重复语句的常规输入,例如:

                  Is C# able to define macros as is done in the C programming language with pre-processor statements? I would like to simplify regular typing of certain repeating statements such as the following:

                  Console.WriteLine("foo");
                  

                  推荐答案

                  不,C# 不支持像 C 这样的预处理器宏.另一方面,Visual Studio 有 snippets.Visual Studio 的代码片段是 IDE 的一项功能,在编辑器中展开,而不是在由预处理器编译的代码中替换.

                  No, C# does not support preprocessor macros like C. Visual Studio on the other hand has snippets. Visual Studio's snippets are a feature of the IDE and are expanded in the editor rather than replaced in the code on compilation by a preprocessor.

                  这篇关于预处理器中的 C# 宏定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Rabbitmq 使用 .NET 使用单个同步调用检索多条消息 下一篇:在预构建事件上运行 Visual Studio 2008 宏

                  相关文章

                  最新文章

                  1. <tfoot id='MlxcP'></tfoot>
                      <bdo id='MlxcP'></bdo><ul id='MlxcP'></ul>

                    <legend id='MlxcP'><style id='MlxcP'><dir id='MlxcP'><q id='MlxcP'></q></dir></style></legend>
                    <i id='MlxcP'><tr id='MlxcP'><dt id='MlxcP'><q id='MlxcP'><span id='MlxcP'><b id='MlxcP'><form id='MlxcP'><ins id='MlxcP'></ins><ul id='MlxcP'></ul><sub id='MlxcP'></sub></form><legend id='MlxcP'></legend><bdo id='MlxcP'><pre id='MlxcP'><center id='MlxcP'></center></pre></bdo></b><th id='MlxcP'></th></span></q></dt></tr></i><div id='MlxcP'><tfoot id='MlxcP'></tfoot><dl id='MlxcP'><fieldset id='MlxcP'></fieldset></dl></div>
                    1. <small id='MlxcP'></small><noframes id='MlxcP'>