16 references to OptionValueParser
dotnet-svcutil-lib (16)
CommandProcessorOptions.cs (2)
778typeReuseMode = OptionValueParser.ParseEnum<TypeReuseMode>(stringValue, this.GetOption(TypeReuseModeKey)); 1045.Select(o => $"{o.Name}:[{OptionValueParser.GetTelemetryValue(o)}]")
Shared\Options\ListValue.cs (2)
56OptionValueParser.ThrowInvalidValueIf(value == null || value.GetType() != typeof(TValue), value, this.Owner); 95this.Add(OptionValueParser.ParseValue<TValue>(value, this.Owner));
Shared\Options\ListValueOption.cs (5)
84this.InnerList.Add(OptionValueParser.ParseValue<TValue>(value, this)); 98value = OptionValueParser.ParseValue<TValue>(value, this); 113OptionValueParser.ThrowInvalidValueIf(jToken.Any(i => i.Type != JTokenType.String), jToken, this); 123OptionValueParser.ThrowInvalidValueIf(collection == null, jToken, this); 127this.InnerList.Add(OptionValueParser.ParseValue<TValue>(item, this));
Shared\Options\OptionBase.cs (2)
156OptionValueParser.ThrowInvalidValueIf(value == null || (stringValue != null && string.IsNullOrWhiteSpace(stringValue)), jToken, this); 168var value = OptionValueParser.GetSerializationValue(this.Value);
Shared\Options\OptionsSerializer.cs (2)
209valueBuilder.Append($"\"{OptionValueParser.GetSerializationValue(input)}\"{separator}"); 222var value = OptionValueParser.GetSerializationValue(option.Value);
Shared\Options\SingleValueOption.cs (2)
29value = OptionValueParser.ParseValue<TValue>(value, this); 44value = OptionValueParser.ParseValue<TValue>(value, this);
Shared\Options\WCFCSUpdateOptions.cs (1)
169OptionValueParser.ThrowInvalidValueIf(parts.Length > 2, stringValue, option);