Esempio n. 1
0
 public void Add(Element element)
 {
     element.Apply(
         onFeature: x => _features.Add(x),
         onParameterDef: x => _parameters.Add(x),
         onProperty: x => _properties.Add(x));
 }
Esempio n. 2
0
 public void Add(Element element)
 {
     element.Apply(
         onFeature: x => _features.Add(x),
         onOption: x => _options.Add(x),
         onProperty: x => _properties.Add(x));
 }
Esempio n. 3
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;
         });
 }
Esempio n. 4
0
 public void Add(Element element)
 {
     element.Apply(
         onProperty: x => _properties.Add(x),
         onValue: x => _value = x);
 }
Esempio n. 5
0
 public void Add(Element element)
 {
     throw new InvalidChildElementException("ParameterRef can't contain any element");
 }
Esempio n. 6
0
 public void Add(Element element)
 {
     element.Apply(onValue: x => _value = x);
 }
Esempio n. 7
0
 public void Add(Element element)
 {
     element.Apply(onProperty: x => _properties.Add(x));
 }