Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AbideTagBlock"/> class.
 /// </summary>
 public AbideTagBlock()
 {
     //Prepare
     name                = string.Empty;
     displayName         = string.Empty;
     maximumElementCount = 0;
     fieldSet            = new AbideFieldSet(this);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns a copy of the <see cref="AbideFieldSet"/>.
        /// </summary>
        /// <returns>A copy of the current <see cref="AbideFieldSet"/> object.</returns>
        public object Clone()
        {
            //Create
            AbideFieldSet fieldSet = new AbideFieldSet(Owner)
            {
                Alignment = Alignment,
            };

            //Copy fields
            fieldSet.fieldList.AddRange(fieldList.Select(f => (AbideTagField)f.Clone()));

            //Return
            return(fieldSet);
        }