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

后端 未结 5 2125
南方客
南方客 2021-02-11 14:23

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

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


        
5条回答
  •  再見小時候
    2021-02-11 15:14

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

    new List(array)

提交回复
热议问题