首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > C #多调度代码生成器

C #多调度代码生成器

  • 资源大小:20.66 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 代码 生成器 调度

资 源 简 介

Description Multimethods are dynamically dispatched methods that use all of their arguments to dispatch to the best overload for the arguments they are called with. This contrasts with the more usual virtual methods where just the target of a method call is used to dispatch to an override. multimethod-sharp contains a Python script which will generate a C# multimethod for a specific signature and attach overloads to it using any methods which are decorated with an attribute nested in the multimethod class. Multimethods are useful whenever you want to extend a class hierarchy with a virtual method without disturbing the class itself or if you want to dispatch on two or more arguments. Examples of the later include collisions, drag and drop, writing objects to different formats, etc. However, unlike ordinary virtual methods, multimethod calls may fail at runtime. Typically this is because an overload cannot be found which is usable with the actual arguments

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 猕猴桃 5小时前 成为了本站会员

  • 11 8小时前 成为了本站会员

  • 开心快活人 11小时前 成为了本站会员

  • 晋财 12小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

0.183740s