Class HashtableUtil
Provide methods to convert hashtable into a string form, and repopulating hastable from string. The conversion do not save type information and assumes that keys are of int type, while values are of string type
Inheritance
System.Object
HashtableUtil
Namespace:
Assembly: Alachisoft.NCache.Web.dll
Syntax
public static class HashtableUtil
Methods
FromString(String)
Populate a hastable from its string representation
Declaration
public static Hashtable FromString(string rep)
Parameters
Type | Name | Description |
---|---|---|
System.String | rep | String representation of hashtable |
Returns
Type | Description |
---|---|
System.Collections.Hashtable | Hashtable formed from string representation |
ToString(ArrayList)
Declaration
public static string ToString(ArrayList list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ArrayList | list |
Returns
Type | Description |
---|---|
System.String |
ToString(Hashtable)
Convert hastable to a string form
Declaration
public static string ToString(Hashtable table)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Hashtable | table | Hashtable containg int key and string value |
Returns
Type | Description |
---|---|
System.String | String representation of hashtable |