System.Array. does not contain a definition for “ToList”

后端 未结 4 2007
被撕碎了的回忆
被撕碎了的回忆 2021-02-11 14:38

I\'m getting the above error on the ToList() line of the code below

if (emailReplyTo != null)
{
  System.Collections.Generic.List replyto
    = ema         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-11 15:16

    You can also do this without .toList, saves including an entire library for no real reason.

    new List(array)

提交回复
热议问题