/// <summary>
        /// Creates a new Attribute with deferred loading.
        /// </summary>
        /// <param name="name">The name of the Attribute, which must be unique to its owner.</param>
        /// <param name="owner">The AttributeList which owns this Attribute.</param>
        /// <param name="defer_offset">The location in the encoded DMX stream at which this Attribute's value can be found.</param>
        public Attribute(string name, AttributeList owner, long defer_offset)
            : this(name, owner, null)
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            Offset = defer_offset;
        }
        /// <summary>
        /// Creates a new Attribute with a specified name and value.
        /// </summary>
        /// <param name="name">The name of the Attribute, which must be unique to its owner.</param>
        /// <param name="value">The value of the Attribute, which must be of a supported Datamodel type.</param>
        public Attribute(string name, AttributeList owner, object value)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            Name   = name;
            _Owner = owner;
            Value  = value;
        }
Beispiel #3
0
 /// <summary>
 /// Creates a new Datamodel.
 /// </summary>
 public Datamodel()
 {
     AllElements      = new ElementList(this);
     PrefixAttributes = new AttributeList(this);
 }
 public DebugView(AttributeList item)
 {
     Item = item;
 }