A delegate is a reference type, like the other reference types you've seen in this book, but instead of referring to an object, a delegate refers to a method. This is called encapsulating the method. When you create the delegate, you specify a method signature and return type; you can encapsulate any matching method with that delegate.

Events enable a subscribers.

相关文章:

  • 2021-05-19
  • 2022-12-23
  • 2021-08-12
  • 2022-01-24
  • 2021-07-25
  • 2022-02-14
猜你喜欢
  • 2021-06-10
  • 2022-12-23
  • 2021-09-17
  • 2021-12-03
  • 2021-12-03
相关资源
相似解决方案