C# SortedSet and equality

前端 未结 3 1911
清酒与你
清酒与你 2021-01-04 06:48

I am a bit puzzled about the behaviour of SortedSet, see following example:

public class Blah
{
    public double Value { get; private set; }

    public Bla         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 07:04

    You can't find the other Blah(2) because you're using a Set.

    Set - A collection of well defined and **distinct** objects
    

    MultiSet, for instance, allows duplicate objects.

提交回复
热议问题