Пример #1
0
        /// <summary>
        /// Adds a <see cref="IMetadatumDefinition"/> with the
        /// <paramref name="values"/> provided.
        /// </summary>
        /// <param name="values">A series of varied type values and possible names.</param>
        /// <returns>A <see cref="IMetadatumDefinition"/> instance with the
        /// <paramref name="values"/> provided.</returns>
        /// <exception cref="System.ArgumentException">thrown when the <paramref name="values"/> points to a compiled attribute type
        /// which has no public constructor that matches the values given, or a property referenced in the named value series did not exist.</exception>
        /// <exception cref="System.ArgumentNullException"><paramref name="values"/>' <see cref="MetadatumDefinitionParameterValueCollection.MetadatumType"/> is null.</exception>
        public IMetadatumDefinition Add(MetadatumDefinitionParameterValueCollection values)
        {
            MetadatumDefinition definition = new MetadatumDefinition(this, values);

            this.baseList.Add(definition);
            return(definition);
        }
Пример #2
0
 /// <summary>
 /// Creates a new <see cref="MetadatumDefinitionParameterCollection"/> with
 /// the <paramref name="parent"/> provided.
 /// </summary>
 /// <param name="parent">The <see cref="MetadatumDefinition"/> which contains
 /// the <see cref="MetadatumDefinitionParameterCollection"/></param>
 /// <exception cref="System.ArgumentNullException">thrown when <paramref name="parent"/>
 /// is null.</exception>
 internal MetadatumDefinitionParameterCollection(MetadatumDefinition parent)
 {
     if (parent == null)
     {
         throw new ArgumentNullException("parent");
     }
     this.Parent = parent;
 }
 public _AttributeCollection(MetadatumDefinition attr, AttributeWrapper[] attributes)
     : base(attributes)
 {
     this.attr = attr;
 }