/// <summary>
        /// Adds the elements in a collection of SchemaElements to the end of the SchemaElements.
        /// </summary>
        /// <param name="values">The SchemaElements collection to add to this collection.</param>
        /// <returns>The number of items in the collection after adding the new SchemaElements.</returns>
        public int AddRange(SchemaElements values)
        {
            foreach (SchemaElement item in values)
            {
                this.InnerList.Add(item);
            }

            return(this.InnerList.Count);
        }
 /// <summary>
 /// Initializes a new instance of the InterfaceContract class.
 /// </summary>
 public InterfaceContract()
 {
     types         = new SchemaElements();
     isHttpBinding = false;
     bindings     |= SoapBindings.Soap11;
 }
 /// <summary>
 /// Initializes the <see cref="Type"/> property.
 /// </summary>
 /// <param name="schemaElements">
 /// An instance of <see cref="SchemaElements"/> class.
 /// </param>
 /// <remarks>This method is accessible only within the assembly.</remarks>
 internal void SetTypes(SchemaElements schemaElements)
 {
     this.types.AddRange(schemaElements);
 }