H
hiddenhippo
Hi,
I have a class which contains all my constant values such as;
public static readonly string[] strStringOps = {"Equals","Not
Equals","Contains"};
The above nicely assigns the values into the string array. However
I'm looking for a way of achieving the same results whilst using a
hashtable; for example
public static hashtable myhash = new hashtable(idictionary)
however I can't find a way of defining all the the key pairs and
passing that into the above e.g.
public static idictionary mydict = {"key","pair","key1","pair1"};
public static hashtable myhash = new hashtable(mydict)
can anyone help, suggest an alternative way, or am I really stuck with
calling
public static idictionary mydict = new hashtable();
myhash.add("foo","bar");
thanks
I have a class which contains all my constant values such as;
public static readonly string[] strStringOps = {"Equals","Not
Equals","Contains"};
The above nicely assigns the values into the string array. However
I'm looking for a way of achieving the same results whilst using a
hashtable; for example
public static hashtable myhash = new hashtable(idictionary)
however I can't find a way of defining all the the key pairs and
passing that into the above e.g.
public static idictionary mydict = {"key","pair","key1","pair1"};
public static hashtable myhash = new hashtable(mydict)
can anyone help, suggest an alternative way, or am I really stuck with
calling
public static idictionary mydict = new hashtable();
myhash.add("foo","bar");
thanks