The type exposed by the HashTable indexer is System.Object. "Equals", "GetHashCode", "GetType" & "ToString" are members of System.Object. You need to cast each value within the hash table collection to your type in order to access that type's members.
((Project.IssueType)_issueTypes["Bug"]).<IssueType member>
If you are in .NET 2.0, I'd recommend avoiding the hash table. Instead you could use the generic Dictionary:
System.Collections.Generic.Dictionary<string, Project.IssueType> _issueTypes;
All the methods involving keys and values of the dictionary will be typed to string and Project.IssueType respectively. When you iterate thru the list, you will be working with the explicit type defined for the dictionary. The indexer will return Project.IssueType so you can directly access the type's members.
-
Peter