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