1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Dim folders = New List(Of Folder)() From { _
New Folder() With { _
Key .Name = "Folder1" _
}, _
New Folder() With { _
Key .Name = "Folder2" _
}, _
New Folder() With { _
Key .Name = "Folder3" _
} _
}
Dim quotaFolders = New List(Of QuotaFolder)() From { _
New QuotaFolder() With { _
Key .Name = "Folder1", _
Key .AnotherInfo = 1 _
}, _
New QuotaFolder() With { _
Key .Name = "Folder2", _
Key .AnotherInfo = 2 _
} _
}
Dim noQuotaFolders = folders.Where(Function(f) Not quotaFolders.Any(Function(qf) qf.Name = f.Name)) |