【发布时间】:2019-01-24 15:51:33
【问题描述】:
我从 Internet 获得了一个代码,其中包含以下代码行
protected override Freezable CreateInstanceCore() => new ExponentialDoubleAnimation();
我没有在 Visual Studio 中安装此版本的 C#。所以这显示了“缺少;”的错误。 谁能告诉我这行代码在 c# 5 及以下的类似代码是什么?
【问题讨论】:
-
@CamiloTerevinto 我已经编辑了您的重复列表,因为表达式主体成员不是 lambda 表达式。
-
@ZoharPeled 谢谢,我忘了删除错误的