'System.Array' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an a

代码添加
using System.Linq;

Guess you like

Origin www.cnblogs.com/zly24432/p/12092868.html