Linqlike distinct.