Discuz.Common/Generic/DiscuzSortedList.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
namespace Discuz.Common.Generic
{
/// <summary>
/// SortedList泛型类
/// </summary>
/// <typeparam name="T">占位符(下同)</typeparam>
[Serializable]
public class SortedList<TKey, TValue> : System.Collections.Generic.SortedList<TKey, TValue>, IDiscuzCollection<KeyValuePair<TKey, TValue>>
{
#region 构造函数
public SortedList() : base()
{ }
public SortedList(IComparer<TKey> comparer) : base(comparer)
{ }
public SortedList(IDictionary<TKey, TValue> dictionary) : base(dictionary)
{ }
public SortedList(int capacity) : base(capacity)
{ }
public SortedList(IDictionary<TKey, TValue> dictionary, IComparer<TKey> comparer): base(dictionary,comparer)
{ }
public SortedList(int capacity, IComparer<TKey> comparer) : base(capacity, comparer)
{ }
#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
{
后面还有 99 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
