/// <summary> /// Gets the Options containing the Feature specified name. /// </summary> /// <param name="name">The name of the Feature.</param> /// <returns>The Options contained by the Feature specified name.</returns> public IReadOnlyList <Option> Get(FeatureName name) { if (name == null) { throw new ArgumentNullException(nameof(name)); } return(_features.Get(name)?.Options()); }
/// <summary> /// Gets the value of the Property specified name. /// </summary> /// <param name="name">The name of the Property.</param> /// <returns>The value of the Property specified name.</returns> public Value Get(PropertyName name) { if (name == null) { throw new ArgumentNullException(nameof(name)); } return(_properties.Get(name)?.Value); }
/// <summary> /// Gets the value of <see cref="ScoredProperty"/> specified name. /// </summary> /// <param name="name">The name of <see cref="ScoredProperty"/>.</param> /// <returns> /// The value of specified ScoredProperty if found, otherwise return null. /// </returns> public ValueOrParameterRef Get(ScoredPropertyName name) { if (name == null) { throw new ArgumentNullException(nameof(name)); } return(_scoredProperties.Get(name)?.ValueOrParameterRef); }
/// <summary> /// Gets the value of the <see cref="ParameterInit"/> specified name. /// </summary> /// <param name="name">The name of the <see cref="ParameterInit"/>.</param> /// <returns> /// The value of the <see cref="ParameterInit"/> specified name. /// </returns> public Value Get(ParameterName name) { if (name == null) { throw new ArgumentNullException(nameof(name)); } return(_parameters.Get(name)?.Value); }
/// <summary> /// Gets the nested <see cref="Feature"/>. /// </summary> /// <param name="name">The name of the nested <see cref="Feature"/>.</param> /// <returns>The Feature specified name.</returns> public Feature Get(FeatureName name) { return(_features.Get(name)); }