Пример #1
0
        /// <summary>
        ///    Adds a descriptor to the current instance.
        /// </summary>
        /// <param name="descriptor">
        ///    A <see cref="ContentDescriptor" /> object to add to the
        ///    current instance.
        /// </param>
        /// <exception cref="ArgumentNullException">
        ///    <paramref name="descriptor" /> is <see langword="null"
        ///    />.
        /// </exception>
        public void AddDescriptor(ContentDescriptor descriptor)
        {
            if (descriptor == null)
            {
                throw new ArgumentNullException("descriptor");
            }

            descriptors.Add(descriptor);
        }
		/// <summary>
		///    Adds a descriptor to the current instance.
		/// </summary>
		/// <param name="descriptor">
		///    A <see cref="ContentDescriptor" /> object to add to the
		///    current instance.
		/// </param>
		/// <exception cref="ArgumentNullException">
		///    <paramref name="descriptor" /> is <see langword="null"
		///    />.
		/// </exception>
		public void AddDescriptor (ContentDescriptor descriptor)
		{
			if (descriptor == null)
				throw new ArgumentNullException ("descriptor");
			
			descriptors.Add (descriptor);
		}