I know the value of key for my Hashtable,
from key how can I obtain the object of DictinaryEntry.
I don’t want to Iterate over Hashtable.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although
DictionaryEntryis the type returned when you iterate aHashtable, it’s not really true that aHashtable‘contains’DictionaryEntrys.DictionaryEntryis a value type and so doesn’t have an identity. If you want ‘a’DictionaryEntrycontaining a given key and the matching value, you can make one yourself: