• <legend id='VaHdn'><style id='VaHdn'><dir id='VaHdn'><q id='VaHdn'></q></dir></style></legend>

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

        c#中有函数指针吗?

        are there function pointers in c#?(c#中有函数指针吗?)
        • <tfoot id='QsLYq'></tfoot>
          <i id='QsLYq'><tr id='QsLYq'><dt id='QsLYq'><q id='QsLYq'><span id='QsLYq'><b id='QsLYq'><form id='QsLYq'><ins id='QsLYq'></ins><ul id='QsLYq'></ul><sub id='QsLYq'></sub></form><legend id='QsLYq'></legend><bdo id='QsLYq'><pre id='QsLYq'><center id='QsLYq'></center></pre></bdo></b><th id='QsLYq'></th></span></q></dt></tr></i><div id='QsLYq'><tfoot id='QsLYq'></tfoot><dl id='QsLYq'><fieldset id='QsLYq'></fieldset></dl></div>

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

            <legend id='QsLYq'><style id='QsLYq'><dir id='QsLYq'><q id='QsLYq'></q></dir></style></legend>

                  <tbody id='QsLYq'></tbody>
                  <bdo id='QsLYq'></bdo><ul id='QsLYq'></ul>
                  本文介绍了c#中有函数指针吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试学习一些 c# 编码,并想知道 c# 中是否包含函数指针的 c++ 概念.我看到有诸如代表之类的东西.它们是同一个概念吗?还是它们在更基本的层面上有所不同?

                  I am trying to learn some c# coding and wondering if the c++ concept of function pointers is included in c#. I see there are such things as delegates. Are they the same concept? or do they differ on a more fundamental level?

                  推荐答案

                  委托本质上是函数指针,但是内置了额外的多播能力.所以你可以将多个函数分配给同一个委托,它们都会被依次调用当委托被调用时.

                  Delegates are essentially function pointers, but with extra multicast capabilities built in. So you can assign several functions to the same delegate, and they will all be called in sequence when the delegate is called.

                  委托还具有内置的异步接口,并且在将新功能分配给委托时(以及在 .NET 4 中,在传递委托时)具有共同/相反的差异

                  Delegates also have built-in asynchronous interfaces, and have co/contra variance when assigning new functions to a delegate (and, in .NET 4, when passing delegates around)

                  这篇关于c#中有函数指针吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
                  How to store delegates in a List(如何将代表存储在列表中)
                  How delegates work (in the background)?(代表如何工作(在后台)?)
                  C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
                  Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
                  <tfoot id='bY61m'></tfoot>

                • <legend id='bY61m'><style id='bY61m'><dir id='bY61m'><q id='bY61m'></q></dir></style></legend>

                      <tbody id='bY61m'></tbody>

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

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

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