Пример #1
0
        /// <summary>
        /// Initializes object with the specified AttributeValueCollection object.
        /// </summary>
        public AttributeValueCollection(AttributeValueCollection collection)
        {
            m_values = new ArrayList(collection.m_values.Count);

            foreach (AttributeValue value in collection.m_values)
            {
                m_values.Add(value.Clone());
            }
        }
Пример #2
0
 // Token: 0x0600075E RID: 1886 RVA: 0x000123D8 File Offset: 0x000113D8
 public AttributeValueCollection(AttributeValueCollection collection)
 {
     this.m_values = new ArrayList(collection.m_values.Count);
     foreach (object obj in collection.m_values)
     {
         AttributeValue attributeValue = (AttributeValue)obj;
         this.m_values.Add(attributeValue.Clone());
     }
 }
Пример #3
0
        // Token: 0x06000763 RID: 1891 RVA: 0x00012494 File Offset: 0x00011494
        public virtual object Clone()
        {
            AttributeValueCollection attributeValueCollection = (AttributeValueCollection)base.MemberwiseClone();

            attributeValueCollection.m_values = new ArrayList(this.m_values.Count);
            foreach (object obj in this.m_values)
            {
                AttributeValue attributeValue = (AttributeValue)obj;
                attributeValueCollection.m_values.Add(attributeValue.Clone());
            }
            return(attributeValueCollection);
        }
Пример #4
0
        // Token: 0x06000787 RID: 1927 RVA: 0x000127F0 File Offset: 0x000117F0
        public override object Clone()
        {
            ItemAttributeCollection itemAttributeCollection = (ItemAttributeCollection)base.Clone();

            itemAttributeCollection.m_attributes = new ArrayList(this.m_attributes.Count);
            foreach (object obj in this.m_attributes)
            {
                AttributeValueCollection attributeValueCollection = (AttributeValueCollection)obj;
                itemAttributeCollection.m_attributes.Add(attributeValueCollection.Clone());
            }
            return(itemAttributeCollection);
        }
Пример #5
0
 // Token: 0x0600077E RID: 1918 RVA: 0x000126FC File Offset: 0x000116FC
 public ItemAttributeCollection(ItemAttributeCollection item) : base(item)
 {
     this.m_attributes = new ArrayList(item.m_attributes.Count);
     foreach (object obj in item.m_attributes)
     {
         AttributeValueCollection attributeValueCollection = (AttributeValueCollection)obj;
         if (attributeValueCollection != null)
         {
             this.m_attributes.Add(attributeValueCollection.Clone());
         }
     }
 }
Пример #6
0
        /// <summary>
        /// Creates a deep copy of the object.
        /// </summary>
        public virtual object Clone()
        {
            AttributeValueCollection collection = (AttributeValueCollection)MemberwiseClone();

            collection.m_values = new ArrayList(m_values.Count);

            foreach (AttributeValue value in m_values)
            {
                collection.m_values.Add(value.Clone());
            }

            return(collection);
        }
Пример #7
0
 /// <summary>
 /// Adds an item to the IList.
 /// </summary>
 /// <param name="value">The Object to add to the IList. </param>
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(AttributeValueCollection value)
 {
     return(Add((object)value));
 }
Пример #8
0
 /// <summary>
 /// Determines the index of a specific item in the IList.
 /// </summary>
 /// <param name="value">The Object to locate in the IList.</param>
 /// <returns>The index of value if found in the list; otherwise, -1.</returns>
 public int IndexOf(AttributeValueCollection value)
 {
     return(IndexOf((object)value));
 }
Пример #9
0
 /// <summary>
 /// Determines whether the IList contains a specific value.
 /// </summary>
 /// <param name="value">The Object to locate in the IList.</param>
 /// <returns>true if the Object is found in the IList; otherwise, false.</returns>
 public bool Contains(AttributeValueCollection value)
 {
     return(Contains((object)value));
 }
Пример #10
0
 /// <summary>
 /// Removes the first occurrence of a specific object from the IList.
 /// </summary>
 /// <param name="value">The Object to remove from the IList.</param>
 public void Remove(AttributeValueCollection value)
 {
     Remove((object)value);
 }
Пример #11
0
 /// <summary>
 /// Inserts an item to the IList at the specified position.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The Object to insert into the IList. </param>
 public void Insert(int index, AttributeValueCollection value)
 {
     Insert(index, (object)value);
 }
Пример #12
0
 // Token: 0x0600079D RID: 1949 RVA: 0x000129C4 File Offset: 0x000119C4
 public int Add(AttributeValueCollection value)
 {
     return(this.Add(value));
 }
Пример #13
0
 // Token: 0x0600079C RID: 1948 RVA: 0x000129BB File Offset: 0x000119BB
 public int IndexOf(AttributeValueCollection value)
 {
     return(this.IndexOf(value));
 }
Пример #14
0
 // Token: 0x0600079B RID: 1947 RVA: 0x000129B2 File Offset: 0x000119B2
 public bool Contains(AttributeValueCollection value)
 {
     return(this.Contains(value));
 }
Пример #15
0
 // Token: 0x0600079A RID: 1946 RVA: 0x000129A9 File Offset: 0x000119A9
 public void Remove(AttributeValueCollection value)
 {
     this.Remove(value);
 }
Пример #16
0
 // Token: 0x06000799 RID: 1945 RVA: 0x0001299F File Offset: 0x0001199F
 public void Insert(int index, AttributeValueCollection value)
 {
     this.Insert(index, value);
 }