Microsoft.Tools.WindowsInstaller.ReinstallModesConverter.TryParse C# (CSharp) Method

TryParse() private static method

private static TryParse ( string value, ReinstallModes &mode ) : bool
value string
mode ReinstallModes
return bool
        private static bool TryParse(string value, out ReinstallModes mode)
        {
            try
            {
                mode = (ReinstallModes)Enum.Parse(typeof(ReinstallModes), value, true);
                return true;
            }
            catch
            {
                mode = 0;
                return false;
            }
        }