我是LINQ的新手。我在vb.net代码中有一个(xRef)列表。
dim xRefList as List (Of String)
类xRef有5个公共属性,总结如下:
Public Sub New(ByVal fSource_ As String, ByVal fSourceConfig_ As String, ByVal fTarget_ As
String, ByVal fTargetConfig_ As String, ByVal isFSuppressed_ As Short)
fSource = fSource_
fSourceCfg = fSourceConfig_
fTarget = fTarget_
fTargetConfig = fTargetConfig_
isFSuppressed = isFSuppressed_
End Sub
我想分组并计算:
a) fsource and ftarget (similar to SQL group by fsource,ftarget,count(fsource))
b) fsource,fSourceCfg ,ftarget,fTargetConfig and count isFSuppressed
我正在查看我的列表,最多有数百个项目。我不是在谈论非常大的名单。