1 write to Name
dotnet-svcutil-lib (1)
Shared\Options\OptionBase.cs (1)
34this.Name = name;
27 references to Name
dotnet-svcutil-lib (27)
CommandProcessorOptions.cs (3)
312this.AddWarning(string.Format(SR.WrnUnexpectedArgumentFormat, option.Name)); 313await safeLogger.WriteMessageAsync($"Resetting unexpected option '{option.Name}' ...", logToUI: false).ConfigureAwait(false); 1032.Select(o => $"{o.Name}:[{OptionValueParser.GetTelemetryValue(o)}]")
Shared\Options\ApplicationOptions.cs (5)
72var existingOption = GetOption(option.Name, throwOnMissing: false); 75throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOptionAlreadyRegisteredFormat, option.Name)); 77this.PropertyBag[option.Name] = option; 91var otherOption = other.GetOption(thisOption.Name, throwOnMissing: false); 227return option.Name != OptionsKey && (allOptions || option.HasValue);
Shared\Options\ListValue.cs (1)
33throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorOptionDuplicateValueFormat, this.Owner.Name, value));
Shared\Options\OptionBase.cs (3)
101return StringComparer.OrdinalIgnoreCase.Compare(this.Name, optionId) == 0 || 126var other = new OptionBase((string)this.Name, this.Aliases.ToArray()); 239var value = string.Format(CultureInfo.CurrentCulture, "{0}: {1}", this.Name, this.Value?.ToString());
Shared\Options\OptionsSerializer.cs (11)
58switch (option.Name) 167o.Name != ApplicationOptions.InputsKey && 168o.Name != ApplicationOptions.OptionsKey && 169o.Name != ApplicationOptions.ProviderIdKey && 170o.Name != ApplicationOptions.VersionKey).OrderBy(o => o.SerializationName); 213o.Name != ApplicationOptions.InputsKey && 214o.Name != ApplicationOptions.OptionsKey && 215o.Name != ApplicationOptions.ProviderIdKey && 216o.Name != ApplicationOptions.VersionKey).OrderBy(o => o.SerializationName); 227valueBuilder.Append($"--{option.Name} \"{listValue}\"{separator}"); 233valueBuilder.Append($"--{option.Name}{value}{separator}");
Shared\Options\OptionValueParser.cs (3)
238var invalidValueError = string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, value, option.Name); 271throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, value, option.Name)); 277throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, value, option.Name), innerException);
Shared\Options\SingleValueOption.cs (1)
50return typeof(TValue) == typeof(bool) ? this.Name : base.ToString();