range of string data annotations c# code example
Example 1: string to enum c# 3
StatusEnum MyStatus = (StatusEnum) Enum.Parse(typeof(StatusEnum), "Active", true);
Example 2: mapping in python string
# mapping function
def uppercase(u):
return str(u.upper())
map_iterator = map(uppercase,['a','b','c'])
mylist = list(map_iterator)
print(mylist)