I want to have a dictionary that assigns a value to a set of integers.
For example key is [1 2 3] and value will have certain
key
[1 2 3]
value
Why not something like
public int GetOrderIndependantHashCode(IEnumerable source) { return (source.Select(x => x*x).Sum() + source.Select(x => x*x*x).Sum() + source.Select(x => x*x*x*x).Sum()) & 0x7FFFFF; }