Пример #1
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;
     });
 }
Пример #2
0
 public ValueOrParameterRef(ParameterRef paramterRef)
 {
     _content = paramterRef;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScoredProperty"/> class.
 /// </summary>
 /// <param name="name">Name of the ScoredProperty.</param>
 /// <param name="parameter">ParameterRef element of the ScoredProperty.</param>
 /// <param name="elements">Child Property and/or ScoredProperty.</param>
 public ScoredProperty(ScoredPropertyName name, ParameterRef parameter, params ScoredPropertyChild[] elements)
     : this(name, elements)
 {
     ParameterRef = parameter;
 }
Пример #4
0
 public PrintSchemaParameterRef(ParameterName name)
 {
     _parameterRef = new ParameterRef(name);
 }