我在下面的代码的ToList()行上得到上面的错误System.Array的。不包含“ToList”的定义
if (emailReplyTo != null)
{
System.Collections.Generic.List<String> replyto
= emailReplyTo
// Strip uneccessary spaces
.Replace(", ", ",")
.Split(',')
.ToList();
request.WithReplyToAddresses(emailReplyTo);
}
我在我的文件顶部包含了using System.Collections;
。 目标框架是3.5,为什么这会导致错误?
,采取在'Output'窗口深沉的样子。因为'错误'窗口有时可能会产生误导。 – Reddy 2017-04-26 22:57:43