“Dictionary和SortedDictionary的默认比较器获取方法是不同的”的版本间的差异
第1行: | 第1行: | ||
Dictionay用的Comparer<ref>["https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.comparer?view=netcore-3.1#remarks" Dictionary<TKey,TValue>.Comparer Property (System.Collections.Generic) | Microsoft Docs]</ref>和SortedDictionary的Coparer<ref>["https://docs.microsoft.com/en-US/dotnet/api/system.collections.generic.sorteddictionary-2.comparer?view=netcore-3.1#remarks" SortedDictionary<TKey,TValue>.Comparer Property (System.Collections.Generic) | Microsoft Docs]</ref>是不一样的。 | Dictionay用的Comparer<ref>["https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.comparer?view=netcore-3.1#remarks" Dictionary<TKey,TValue>.Comparer Property (System.Collections.Generic) | Microsoft Docs]</ref>和SortedDictionary的Coparer<ref>["https://docs.microsoft.com/en-US/dotnet/api/system.collections.generic.sorteddictionary-2.comparer?view=netcore-3.1#remarks" SortedDictionary<TKey,TValue>.Comparer Property (System.Collections.Generic) | Microsoft Docs]</ref>是不一样的。 | ||
+ | == 引用 == | ||
<references/> | <references/> |
2020年8月16日 (日) 16:16的版本
Dictionay用的Comparer[1]和SortedDictionary的Coparer[2]是不一样的。
引用
- ↑ ["https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.comparer?view=netcore-3.1#remarks" Dictionary<TKey,TValue>.Comparer Property (System.Collections.Generic) | Microsoft Docs]
- ↑ ["https://docs.microsoft.com/en-US/dotnet/api/system.collections.generic.sorteddictionary-2.comparer?view=netcore-3.1#remarks" SortedDictionary<TKey,TValue>.Comparer Property (System.Collections.Generic) | Microsoft Docs]