I need to "combine" several instances of the same type. There are several ILIT properties on this type, I want to take each example and in those instances I want to add the values of those IList properties, so my code requires only one of those examples.
I am thinking of making an Icobinable interface, but I wonder if there is something already that is favorable to it?
Public Interface IOKBable & lt; T & gt; {With zero combination (T example); }
Did you System.Collections.Generic.HashSet & lt; T & gt;
? If you add the same thing many times, then only 1 item exists.
Comments
Post a Comment