提交 c077be45 编写于 作者: V VSadov

Replaced the error message for invalid use of extension Add method in expression lambda.

上级 0c0aaf36
......@@ -3923,7 +3923,7 @@ internal class CSharpResources {
}
/// <summary>
/// Looks up a localized string similar to An expression tree lambda may not contain an extension collection element initializer..
/// Looks up a localized string similar to An extension Add method is not supported for a collection initializer in an expression lambda..
/// </summary>
internal static string ERR_ExtensionCollectionElementInitializerInExpressionTree {
get {
......
......@@ -4545,7 +4545,7 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<value>An expression tree lambda may not contain a dictionary initializer.</value>
</data>
<data name="ERR_ExtensionCollectionElementInitializerInExpressionTree" xml:space="preserve">
<value>An expression tree lambda may not contain an extension collection element initializer.</value>
<value>An extension Add method is not supported for a collection initializer in an expression lambda.</value>
</data>
<data name="IDS_FeatureNameof" xml:space="preserve">
<value>nameof operator</value>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册