原创 字符串轉換成枚舉

字符串轉換成枚舉值 (ContentType)Enum.Parse(typeof(ContentType), bd.GetValue("ContentType").ToString());