你的位置: 码友网首页 / 资讯源列表 / Double Dispatch in C# and DDD

关于[Double Dispatch in C# and DDD]的摘要:

Double dispatch is a pattern you can use in C# to control how communication flows between two objects. A frequent use of the pattern is to pass “this” to a function on another class, allowing that class to communicate back to or manipulate the calling object instance. It can also be used to achieve polymorphic behavior. I have a GitHub sample you can browse or download that demonstrates some of these techniques.

原文地址: https://ardalis.com/double-dispatch-in-c-and-ddd

收录时间: 2018-12-02 浏览量: 2360 分类: 架构设计

| 0 收藏 | 0