using System;
public class Program
{
public static void Main()
string example = "Membership";
ActionType v = (ActionType) Enum.Parse(typeof(ActionType),example);
System.Console.WriteLine((int) v);
}
public enum ActionType
Create = 1, // Create of a new Ressource
Delete = 2, // Deletion of a new Ressource
ChangeOwner = 3, // Change of the DataOwner
Membership = 4, // Change the membership, there could be multiple Example Read, Write, Delete, etc.
PropertyChange = 5, // Change of the Property
Rename = 6