Esempio n. 1
0
 public OperationElement(string name, string summary, AmlDataType dataType, params string[] values) : this(name, summary)
 {
     _valueTypes = new List <AmlTypeDefinition>()
     {
         AmlTypeDefinition.FromDefinition(dataType, values)
     };
 }
Esempio n. 2
0
        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);
        }