/// <summary> /// Helper method to resolve the raw string value of the arg using the formatter and type /// converter. /// </summary> /// <param name="rawValue">The raw string value assigned to the arg.</param> /// <returns>The resolved value after applying formatter and type converter.</returns> internal object ResolveValue(string rawValue) { string formattedValue = Arg.Formatter != null?Arg.Formatter(rawValue) : rawValue; return(_converter != null?_converter(formattedValue) : formattedValue); }