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

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

    1. <tfoot id='mhkEj'></tfoot>

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

        代码覆盖结果窗口中的额外类

        时间:2023-09-17

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

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

                  <tbody id='j5za8'></tbody>
                  <bdo id='j5za8'></bdo><ul id='j5za8'></ul>
                  本文介绍了代码覆盖结果窗口中的额外类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 Visual Studio 2010 中运行我的自动化测试后,代码覆盖率结果"选项卡显示了一些我不理解的内容.被测试的类之一称为 ApplicationData.它显示在代码覆盖率列表中.但它的变体也出现了,在这种情况下出现了 3 次(见下文).

                  After running my automated tests in Visual Studio 2010, the Code Coverage Results tab shows something I don't understand. One of the classes that gets tested is called ApplicationData. It shows up in the code coverage list. But variants of it also show up, three times (see below) in this case.

                  如果我在代码覆盖选项卡中展开每个 ApplicationData 实例,第一个显示所有方法,其余显示一些方法.

                  If I expand each ApplicationData instance in the code coverage tab, the first shows all methods, and the rest show some methods.

                  我的问题是……那些附加了 <>c__DisplayClass 的额外 ApplicationData 类是什么?

                  My question is... What are those extra ApplicationData classes with <>c__DisplayClass appended?

                  推荐答案

                  这些是自动生成的类,用于闭包等语法糖功能.即

                  These are auto-generated classes for syntactic sugar features like closures. I.e.

                   int v = 1;
                   myIntArray.Foreach( item => { v+= item; });
                  

                  将生成一些类来适当地存储/传递 v.

                  Will produce some class for storing/passing v appropriately.

                  这篇关于代码覆盖结果窗口中的额外类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 C# 中验证消息框弹出窗口? 下一篇:即使在 .NET Core 控制台应用程序中使用 Console.ReadLine(),docker 容器也会立即退出

                  相关文章

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

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

                    • <bdo id='USoDE'></bdo><ul id='USoDE'></ul>