Add() public method

Adds the indicated Release instance to the set managed by the Specification.
If the is associated /// with a different Specification.
public Add ( Release release ) : void
release Release The to be added.
return void
Esempio n. 1
0
        /// <summary>
        /// Constructs a <b>Release</b> instance and associates it with the
        /// indicated <see cref="Specification"/>.
        /// </summary>
        /// <param name="specification">The owning <see cref="Specification"/>.</param>
        /// <param name="version">The version identifier for this release.</param>
        /// <param name="rootElements">The set of possible root element.</param>
        protected Release(Specification specification, string version, string [] rootElements)
        {
            this.specification = specification;
            this.version	   = version;
            this.rootElements  = rootElements;

            specification.Add (this);
        }
Esempio n. 2
0
        /// <summary>
        /// Constructs a <b>Release</b> instance and associates it with the
        /// indicated <see cref="Specification"/>.
        /// </summary>
        /// <param name="specification">The owning <see cref="Specification"/>.</param>
        /// <param name="version">The version identifier for this release.</param>
        /// <param name="rootElements">The set of possible root element.</param>
        protected Release(Specification specification, string version, string [] rootElements)
        {
            this.specification = specification;
            this.version       = version;
            this.rootElements  = rootElements;

            specification.Add(this);
        }