Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HashSet<string>如果我知道字符串存在,如何有效地获取对字符串的引用?
HashSet<string>
IE
hashSet.Contains(myString) == true string stringRef = ???
谢谢!
http://msdn.microsoft.com/en-us/library/system.string.intern.aspx