Common/HangjingList.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;

// 此代码来自开源系统
// 感谢贡献此代码的公司以及程序员

namespace WMPT.Common
{
    /// <summary>
    /// 列表泛型类 //System.Collections.Generic.List<T> 相当于泛型的 ArrayList, 元素可重复、可排序、可插入、可索引访问
    /// </summary>
    /// <typeparam name="T">占位符(下同)</typeparam>
    [Serializable]
    public class HjList<T> : System.Collections.Generic.List<T>, WMPTCollection<T>
    {

        #region 构造函数
        public HjList()
            : base()
        { }

        public HjList(IEnumerable<T> collection)
            : base(collection)
        { }

        public HjList(int capacity)
            : base(capacity)
        { }
        #endregion


        public object SyncRoot
        {
            get
            {
                return this;
            }
        }

        /// <summary>
        /// 是否为空
        /// </summary>
        public bool IsEmpty
        {
            get
            {
                return this.Count == 0;
            }
        }

        private int _fixedsize = default(int);
        /// <summary>
        /// 固定大小属性
        /// </summary>
        public int FixedSize
        {
            get
后面还有 119 行代码,购买后查看完整代码

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

AI 解读 AI

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

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