public void Add(Element element) { element.Apply( onFeature: x => _features.Add(x), onOption: x => _options.Add(x), onProperty: x => _properties.Add(x)); }
public void Add(Element element) { element.Apply( onFeature: x => _features.Add(x), onParameterInit: x => _parameters.Add(x), onProperty: x => _properties.Add(x)); }
/// <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))); }
/// <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)); }
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; }); }
public Feature Add(Feature feature) { return(new Feature(Name, _properties, _options, _features.Add(feature))); }
public Feature Add(Property property) { return(new Feature(Name, _properties.Add(property), _options, _features)); }
/// <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))); }
/// <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))); }
public void Add(Element element) { element.Apply( onProperty: x => _properties.Add(x), onValue: x => _value = x); }
public void Add(Element element) { element.Apply(onProperty: x => _properties.Add(x)); }
public Capabilities Add(Property element) { return(new Capabilities(_features, _parameters, _properties.Add(element), _declaredNamespaces)); }