ImmutableDictionary<TKey,TValue>.ValueComparer 属性

定义

获取用于确定值是否相等的值比较器。

public:
 property System::Collections::Generic::IEqualityComparer<TValue> ^ ValueComparer { System::Collections::Generic::IEqualityComparer<TValue> ^ get(); };
public System.Collections.Generic.IEqualityComparer<TValue> ValueComparer { get; }
member this.ValueComparer : System.Collections.Generic.IEqualityComparer<'Value>
Public ReadOnly Property ValueComparer As IEqualityComparer(Of TValue)

属性值

用于确定值是否相等的值比较器。

注解

更新不可变集合时,值比较用作性能优化:为了最大程度地减少所需的复制量,不会替换相等的值。

适用于