I\'m getting the above error on the ToList() line of the code below
if (emailReplyTo != null)
{
System.Collections.Generic.List replyto
= ema
This is simply because ArrayList
does not expose a method named ToList
.
See this MSDN page for a table view of the members available to you.
As explained by others, you may access this extension method by importing the Linq library:
using System.Linq;
Also, see this link for a custom implementation of such, should you desire to implement one.