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 ValueOrParameterRef(ParameterRef paramterRef) { _content = paramterRef; }
/// <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; }
public PrintSchemaParameterRef(ParameterName name) { _parameterRef = new ParameterRef(name); }