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