Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

convert enum to keyvalue

string[] names = Enum.GetNames(typeof(Translation));

Hashtable hashTable = new Hashtable();
for (int i = 0; i < names.Length; i++)
{
    hashTable[i + 1] = names[i];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #enum #keyvalue
ADD COMMENT
Topic
Name
7+4 =