2 types derived from OptionBase
dotnet-svcutil-lib (2)
Shared\Options\ListValueOption.cs (1)
20internal class ListValueOption<TValue> : OptionBase
Shared\Options\SingleValueOption.cs (1)
12internal class SingleValueOption<TValue> : OptionBase
1 instantiation of OptionBase
dotnet-svcutil-lib (1)
Shared\Options\OptionBase.cs (1)
126var other = new OptionBase((string)this.Name, this.Aliases.ToArray());
46 references to OptionBase
dotnet-svcutil-lib (46)
CommandProcessorOptions.cs (2)
110var typeReuseModeOption = this.GetOption(TypeReuseModeKey); 311foreach (var option in disallowedUserOptionsOnUpdateOperation)
Shared\Options\ApplicationOptions.cs (18)
22private SortedDictionary<string, OptionBase> PropertyBag { get; set; } 52this.PropertyBag = new SortedDictionary<string, OptionBase>(); 68protected void RegisterOptions(params OptionBase[] options) 70foreach (var option in options) 72var existingOption = GetOption(option.Name, throwOnMissing: false); 89foreach (var thisOption in this.GetOptions()) 91var otherOption = other.GetOption(thisOption.Name, throwOnMissing: false); 188public OptionBase GetOption(string optionId, bool throwOnMissing = true) 190return GetOption<OptionBase>(optionId, throwOnMissing); 197public TOptionBase GetOption<TOptionBase>(string optionId, bool throwOnMissing = true) where TOptionBase : OptionBase 199var option = this.PropertyBag.ContainsKey(optionId) ? 211public bool TryGetOption(string optionId, out OptionBase option) 221public IEnumerable<OptionBase> GetOptions(bool allOptions = false) 225var option = p.Value; 233public IEnumerable<OptionBase> GetAllOptions() 243var option = GetOption(optionId, throwOnMissing); 253var option = GetOption(optionId); 267foreach (var option in GetAllOptions())
Shared\Options\OptionBase.cs (3)
105public virtual void CopyTo(OptionBase other) 124public OptionBase Clone() 126var other = new OptionBase((string)this.Name, this.Aliases.ToArray());
Shared\Options\OptionsSerializer.cs (10)
55bool optionFound = options.TryGetOption(jPropInfo.Key, out var option); 96private static void ReadOption(OptionBase option, JToken jToken) 108if (options.TryGetOption(jProperty.Key, out var option)) 148var providerOption = options.GetOption(ApplicationOptions.ProviderIdKey); 151var versionOption = options.GetOption(ApplicationOptions.VersionKey); 157var optionsOption = options.GetOption(ApplicationOptions.OptionsKey); 162var inputsOption = options.GetOption(ApplicationOptions.InputsKey); 172foreach (var option in otherOptions) 180private static void SerializeOption(OptionBase option, JsonWriter writer, JsonSerializer serializer) 218foreach (var option in printOptions)
Shared\Options\OptionValueParser.cs (7)
22public static TValue ParseValue<TValue>(object value, OptionBase option) 159public static object GetTelemetryValue(OptionBase option) 210private static KeyValuePair<string, string> ParseKeyValuePair(string stringValue, OptionBase option) 221public static object ParseEnum<TValue>(string value, OptionBase option) 246public static object CreateValue<TValue>(Func<object> GetValueFunc, OptionBase option, object originalValue) 263public static void ThrowInvalidValueIf(bool condition, object value, OptionBase option) 275public static void ThrowInvalidValue(object value, OptionBase option, Exception innerException)
Shared\Options\WCFCSUpdateOptions.cs (6)
46var internalOption = GetOption(InternalTypeAccessKey); 50var namespaceOption = GetOption(NamespaceMappingsKey); 53var collectionTypeRefOption = GetOption(CollectionTypeReferenceKey); 56var dictionaryCollectionTypeRefOption = GetOption(DictionaryCollectionTypeReferenceKey); 160e.Value = new List<object> { ParseNamespace(jToken.Value<string>(), sender as OptionBase) }; 164private object ParseNamespace(string stringValue, OptionBase option)