public dynamic ParseString(ArgumentInfo argumentInfo, string value) { try { return(_argumentTypeDescriptor.ParseString(argumentInfo, value)); } catch (FormatException) { throw new ValueParsingException( $"'{value}' is not a valid {_argumentTypeDescriptor.GetDisplayName(argumentInfo)}"); } catch (ArgumentException) { throw new ValueParsingException( $"'{value}' is not a valid {_argumentTypeDescriptor.GetDisplayName(argumentInfo)}"); } }
public string GetDisplayName(IArgument argument) { return(_innerDescriptor.GetDisplayName(argument)); }