![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 jawdar ![]()
![]() |
public class QQ public property t0 as string public property t1 as string public property t2 as double public property t3 as double end class public class ww public property d1 As Dictionary(Of String, QQ) public property d2 As Dictionary(Of String, QQ) sub rr() dim DICT As New Dictionary(Of String, QQ) For Each w As String() In (From x In 長字串 Let w1 = x.Split(",") Select w1) DICT.Add(t(0), New QQ() With {.t0 = w(0), .t1 = w(1), .t2 = w(2), .t3 = w(3)}) Next d1=from ss in DICT where ss.value.t3=12.77 select ss ※請問 要如何讓 d1 As Dictionary(Of String, QQ) 成立呢??? --------------------------------------------------------- for eaCH .............. d2=from ss in d1 where ss.value.t1="Tom" select ss NEXT --------------------------------------------------------- ※請問 如果d1已經成為Dictionary(Of String, QQ)類型 又如何讓d2 成為Dictionary(Of String, QQ)類型呢???? end class |