此代碼的工作,但效率不高,因爲它的雙查找的ignored字典。如何在LINQ語句中使用字典TryGetValue()方法使其更高效? IDictionary<int, DateTime> records = ...
IDictionary<int, ISet<DateTime>> ignored = ...
var result = from r in records
whe
我有這本字典和元組中的SetValue(),如下設置: - var myDict = new Dictionary<string, Tuple<string, string>>();
private void SetValue()
{
var myTuple1= Tuple.Create("ABC", "123");
var myTuple2= Tuple.Create(