-1
を使用せずに、コレクションから項目を取得:VB.Net - 私はこのコードを最適化したいループ
dim mPolNo as new Collection(Of String)
For Each _olap As clsOLAP in cscOLAPs
mPolNo.Add(_olap._p1.PolNo)
Next
(PolNoのデータ型が文字列である)
を私がすることをCollection.Selectを使用してみました私はgoogleで掘る。
Unable to cast object of type 'WhereSelectEnumerableIterator`2[SIPLib.ING.clsOLAP,System.String]' to type 'System.Collections.ObjectModel.Collection`1[System.String]'.
ありがとうございます!私はそれを実行させるために、mPolNoのデータ型をCollection(Of String)からList(Of String)に変更する必要があります。 –