Discuz.Entity/Mall/GoodsrateinfoCollection.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;

namespace Discuz.Entity
{
    /// <summary>
    /// 商品评价信息集合类
    /// </summary>
    public class GoodsrateinfoCollection : CollectionBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> class.
        /// </summary>
        public GoodsrateinfoCollection()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> class containing the elements of the specified source collection.
        /// </summary>
        /// <param name="value">A <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> with which to initialize the collection.</param>
        public GoodsrateinfoCollection(GoodsrateinfoCollection value)
        {
            this.AddRange(value);
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> class containing the specified array of <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> Components.
        /// </summary>
        /// <param name="value">An array of <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> Components with which to initialize the collection. </param>
        public GoodsrateinfoCollection(Goodsrateinfo[] value)
        {
            this.AddRange(value);
        }

        /// <summary>
        /// Gets the <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> at the specified index in the collection.
        /// <para>
        /// In C#, this property is the indexer for the <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> class.
        /// </para>
        /// </summary>
        public Goodsrateinfo this[int index]
        {
            get { return ((Goodsrateinfo)(this.List[index])); }
        }

        public int Add(Goodsrateinfo value)
        {
            return this.List.Add(value);
        }

        /// <summary>
        /// Copies the elements of the specified <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> array to the end of the collection.
        /// </summary>
        /// <param name="value">An array of type <see cref="GoodsrateinfoCollection">GoodsrateinfoCollection</see> containing the Components to add to the collection.</param>
        public void AddRange(Goodsrateinfo[] value)
        {
            for (int i = 0; (i < value.Length); i = (i + 1))
            {
                this.Add(value[i]);
后面还有 128 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。