public enum CacheControlMode { DisableCache, UseExpires } string s = CacheControlMode.UseExpires.ToString(); CacheControlMode cm = (CacheControlMode) Enum.Parse(typeof(CacheControlMode), s); tbResult.Text = cm.ToString();
public enum CacheControlMode { DisableCache, UseExpires } string s = CacheControlMode.UseExpires.ToString(); CacheControlMode cm = (CacheControlMode) Enum.Parse(typeof(CacheControlMode), s); tbResult.Text = cm.ToString();