IEqualityComparer and singleton
问题 I was wondering if there is possibility to use singleton as comparerObject in for example Distinct ?? Let's say that I have a list of element and I need to use distinct function on that list. Normally I would do that this way var result = list.Distinct(new ListElementComparer); ListElementComparer is a class which implements IEqualityComparer interface. However let's assume that I will be using code mentioned above quite frequently for example that way . List<List<Element>> elementList = new