using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace msdb
{
public class dbWordSet : HashTable
{
}
}
Compiler error message is
Error 1 The type or namespace name 'HashTable' could
not be found (are you missing a using directive or an
assembly reference?) C:\Documents and
Settings\austiny\My Documents\Visual Studio
2005\Projects\MicroServer\msdb\dbWordSet.cs 8 30 msdb
if I change HashTable to List, there is no error
message.
Loading
AlanPosted Jan 8, 2008, 7:56 PM
There isn't in fact a generic Hashtable (lower case 't') in the .NET Framework. Instead, you should use the generic Dictionary:
http://msdn2.microsoft.com/en-us/library/xfhwa508.aspx
If you have .NET 3.5, there's also a generic HashSet which is used for 'set' operations:
http://msdn2.microsoft.com/en-us/library/bb359438.aspx