Exemple #1
0
        private TestAttrib CreateAttribute(string name, AttributeType type, IEnumerable <object> values)
        {
            TestAttrib attribute = new TestAttrib(name, type, true);

            if (values != null)
            {
                attribute.SetValues(values);
            }

            return(attribute);
        }
Exemple #2
0
        private TestAttrib CreateAttribute(string name, AttributeType type, bool isMultivalued, object value)
        {
            TestAttrib attribute = new TestAttrib(name, type, false);

            if (value != null)
            {
                attribute.SetValue(value);
            }

            return(attribute);
        }
Exemple #3
0
 public void Add(TestAttrib attribute)
 {
     this.attributes.Add(attribute.Name, attribute);
 }