public OperationElement(string name, string summary, AmlDataType dataType, params string[] values) : this(name, summary) { _valueTypes = new List <AmlTypeDefinition>() { AmlTypeDefinition.FromDefinition(dataType, values) }; }
public OperationElement WithAttribute(string name, string summary, AmlDataType dataType, params string[] values) { var attr = GetOrAddAttribute(name); attr.Summary.Add(new TextRun(summary)); attr._valueTypes = new List <AmlTypeDefinition>() { AmlTypeDefinition.FromDefinition(dataType, values) }; return(this); }