예제 #1
0
 public void Add(Element element)
 {
     element.Apply(
         onFeature: x => _features.Add(x),
         onOption: x => _options.Add(x),
         onProperty: x => _properties.Add(x));
 }
예제 #2
0
 public void Add(Element element)
 {
     element.Apply(
         onFeature: x => _features.Add(x),
         onParameterInit: x => _parameters.Add(x),
         onProperty: x => _properties.Add(x));
 }
예제 #3
0
 /// <summary>
 /// Adds the specified element to the <see cref="ScoredProperty"/>.
 /// </summary>
 /// <param name="property">The Property to add.</param>
 /// <returns>A new ScoredProperty with the element added.</returns>
 public ScoredProperty Add(Property property)
 {
     return(new ScoredProperty(
                Name,
                Value,
                ParameterRef,
                _scoredProperties,
                _properties.Add(property)));
 }
예제 #4
0
 /// <summary>
 /// Adds the specified element to the <see cref="ScoredProperty"/>.
 /// </summary>
 /// <param name="element">The ScoredProperty to add.</param>
 /// <returns>A new ScoredProperty with the element added.</returns>
 public ScoredProperty Add(ScoredProperty element)
 {
     return(new ScoredProperty(
                Name,
                Value,
                ParameterRef,
                _scoredProperties.Add(element),
                _properties));
 }
예제 #5
0
 public void Add(Element element)
 {
     element.Apply(
         onScoredProperty: x => _scoredProperties.Add(x),
         onProperty: x => _properties.Add(x),
         onParameterRef: x =>
     {
         ThrowIfValueOrParameterRefExists();
         _parameterRef = x;
     },
         onValue: x =>
     {
         ThrowIfValueOrParameterRefExists();
         _value = x;
     });
 }
예제 #6
0
파일: Feature.cs 프로젝트: kei10in/KipSharp
 public Feature Add(Feature feature)
 {
     return(new Feature(Name, _properties, _options, _features.Add(feature)));
 }
예제 #7
0
파일: Feature.cs 프로젝트: kei10in/KipSharp
 public Feature Add(Property property)
 {
     return(new Feature(Name, _properties.Add(property), _options, _features));
 }
예제 #8
0
 /// <summary>
 /// Add the specified element to the <see cref="Option"/>.
 /// </summary>
 /// <param name="element">The <see cref="ScoredProperty"/> to add.</param>
 /// <returns>A new Option with the element added.</returns>
 public Option Add(ScoredProperty element)
 {
     return(new Option(Name, Constrained, _properties, _scoredProperties.Add(element)));
 }
예제 #9
0
 /// <summary>
 /// Adds the specified element to the <see cref="Property"/>.
 /// </summary>
 /// <param name="property">The property to add to this instance.</param>
 /// <returns>A new Property with the element added.</returns>
 public Property Add(Property property)
 {
     return(new Property(Name, Value, _properties.Add(property)));
 }
예제 #10
0
 public void Add(Element element)
 {
     element.Apply(
         onProperty: x => _properties.Add(x),
         onValue: x => _value = x);
 }
예제 #11
0
 public void Add(Element element)
 {
     element.Apply(onProperty: x => _properties.Add(x));
 }
예제 #12
0
 public Capabilities Add(Property element)
 {
     return(new Capabilities(_features, _parameters, _properties.Add(element), _declaredNamespaces));
 }