private bool ValidateInputs() { if (_specifiedFormatType != null) { try { _formatType = (_FormatType)Enum.Parse(typeof(_FormatType), _specifiedFormatType, true); } catch (ArgumentException) { Log.LogErrorWithCodeFromResources("General.InvalidValue", "FormatType", "FormatVersion"); return(false); } } return(true); }
private bool ValidateInputs() { if (this.specifiedFormatType != null) { try { this.formatType = (_FormatType) Enum.Parse(typeof(_FormatType), this.specifiedFormatType, true); } catch (ArgumentException) { base.Log.LogErrorWithCodeFromResources("General.InvalidValue", new object[] { "FormatType", "FormatVersion" }); return false; } } return true; }