var hashSet = new HashSet<int>(myIEnumerable);
假设迭代IEnumerable是O(n),那么创建HashSet< int>以这样的方式?
This constructor is an O(n) operation,where n is the number of elements in the collection parameter.
http://msdn.microsoft.com/en-us/library/bb301504.aspx