I have my enum defined like this.
 public enum Places : long
  {
    World = (long)1,
    India = (long)23424848,
    USA = (long)23424977
  }
Now I get a string of value like 'India'. I want the corresponding value of the enumerator.
for instance if i get the string 'World'(or world - case insensitive ), I need the value 1 to be returned.
I tried this way:
long woeid = ((long)(typeof(Places)country)); 
this doesnot work.
Is there a simple way to do?
 
    