C# System.Data.EnumerablerRowCollectionExtensions.Cast错误
我在C# System.Data.EnumerablerRowCollectionExtensions.Cast错误,c#,C#,我在Cast上说的时候出错了 System.Data.EnumerableRowCollectionExtensions.Cast<TResult (System.Data.EnumerableRowCollection)' is a 'method` System.Data.EnumerableRowCollectionExtensions.Cast sbTmp.AppendLine((x[“segmessage”).ToString()); 您忘记了调用Cast和ToList方法
Cast
上说的时候出错了
System.Data.EnumerableRowCollectionExtensions.Cast<TResult (System.Data.EnumerableRowCollection)' is a 'method`
System.Data.EnumerableRowCollectionExtensions.Cast sbTmp.AppendLine((x[“segmessage”).ToString());
您忘记了调用Cast
和ToList
方法的括号:
.....Cast<DataRow>().ToList()....
…Cast().ToList()。。。。
在C#中,需要使用括号来调用方法并计算其结果。否则,编译器会认为您试图在代码中引用的是物理方法本身,而不是其结果。您忘记了调用
Cast
和ToList
方法的括号:
.....Cast<DataRow>().ToList()....
…Cast().ToList()。。。。
在C#中,需要使用括号来调用方法并计算其结果。否则,编译器会认为您试图在代码中引用的是物理方法本身,而不是其结果。您忘记了调用
Cast
和ToList
方法的括号:
.....Cast<DataRow>().ToList()....
…Cast().ToList()。。。。
在C#中,需要使用括号来调用方法并计算其结果。否则,编译器会认为您试图在代码中引用的是物理方法本身,而不是其结果。您忘记了调用
Cast
和ToList
方法的括号:
.....Cast<DataRow>().ToList()....
…Cast().ToList()。。。。
在C#中,需要使用括号来调用方法并计算其结果。否则,编译器会认为您试图在代码中引用物理方法本身,而不是其结果