/// <summary> /// Converts the string representation of the name of a DialogResult to an equivalent DialogResult object. /// A parameter specifies whether the operation is case-sensitive. /// The return value indicates whether the conversion succeeded. /// </summary> public static bool? TryParse(string value, bool ignoreCase, out DialogResult result) { var parseResult = new EnumResult(); var retValue = TryParseDialogResult(value, ignoreCase, ref parseResult); result = parseResult.ParsedEnum; return retValue; }
/// <summary> /// Converts the string representation of the name of a DialogResult to an equivalent DialogResult object. /// The return value indicates whether the conversion succeeded. /// </summary> public static bool? TryParse(string value, out DialogResult result) { return TryParse(value, false, out result); }