﻿using System;

namespace EvilDICOM.Core.Helpers
{
    public class EnumHelper
    {
        public static T StringToEnum<T>(string name)
        {
            return (T) Enum.Parse(typeof (T), name);
        }
    }
}
﻿using System;

namespace EvilDICOM.Core.Helpers
{
    public class EnumHelper
    {
        public static T StringToEnum<T>(string name)
        {
            return (T) Enum.Parse(typeof (T), name, false);
        }
    }
}
Use Enum.Parse overload available in PCL
Use Enum.Parse overload available in PCL
