11 references to ThrowInvalidValueIf
dotnet-svcutil-lib (11)
Shared\Options\ListValue.cs (1)
56
OptionValueParser.
ThrowInvalidValueIf
(value == null || value.GetType() != typeof(TValue), value, this.Owner);
Shared\Options\ListValueOption.cs (2)
113
OptionValueParser.
ThrowInvalidValueIf
(jToken.Any(i => i.Type != JTokenType.String), jToken, this);
123
OptionValueParser.
ThrowInvalidValueIf
(collection == null, jToken, this);
Shared\Options\OptionBase.cs (1)
156
OptionValueParser.
ThrowInvalidValueIf
(value == null || (stringValue != null && string.IsNullOrWhiteSpace(stringValue)), jToken, this);
Shared\Options\OptionValueParser.cs (6)
24
ThrowInvalidValueIf
(value == null, value, option);
33
ThrowInvalidValueIf
(stringValue == null, value, option);
39
ThrowInvalidValueIf
(!bool.TryParse(stringValue, out var boolValue), stringValue, option);
80
ThrowInvalidValueIf
(true, stringValue, option);
215
ThrowInvalidValueIf
(parts.Length != 2, stringValue, option);
259
ThrowInvalidValueIf
(value.GetType() != typeof(TValue), value, option);
Shared\Options\WCFCSUpdateOptions.cs (1)
169
OptionValueParser.
ThrowInvalidValueIf
(parts.Length > 2, stringValue, option);