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