예제 #1
0
파일: Ticket.cs 프로젝트: kei10in/KipSharp
 /// <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());
 }
예제 #2
0
파일: Ticket.cs 프로젝트: kei10in/KipSharp
 /// <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);
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
파일: Ticket.cs 프로젝트: kei10in/KipSharp
 /// <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);
 }
예제 #5
0
파일: Feature.cs 프로젝트: kei10in/KipSharp
 /// <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));
 }