📄 c_historycollection.cs
字号:
using System;
using System.Collections;
namespace Club.Framework.Components
{
/// <summary>
/// c_HistoryCollection 的摘要说明。
/// </summary>
public class c_HistoryCollection: CollectionBase
{
public c_HistoryCollection(c_HistoryCollection value)
{
this.AddRange(value);
}
public c_HistoryCollection(c_HistoryInfo[] value)
{
this.AddRange(value);
}
public c_HistoryInfo this[int index]
{
get {return ((c_HistoryInfo)(this.List[index]));}
}
public int Add(c_HistoryInfo value)
{
return this.List.Add(value);
}
public void AddRange(c_HistoryInfo[] value)
{
for (int i = 0; (i < value.Length); i = (i + 1))
{
this.Add(value[i]);
}
}
public void AddRange(c_HistoryCollection value)
{
for (int i = 0; (i < value.Count); i = (i + 1))
{
this.Add((c_HistoryInfo)value.List[i]);
}
}
public bool Contains(c_HistoryInfo value)
{
return this.List.Contains(value);
}
public void CopyTo(c_HistoryInfo[] array, int index)
{
this.List.CopyTo(array, index);
}
public c_HistoryInfo[] ToArray()
{
c_HistoryInfo[] array = new c_HistoryInfo[this.Count];
this.CopyTo(array, 0);
return array;
}
public int IndexOf(c_HistoryInfo value)
{
return this.List.IndexOf(value);
}
public void Insert(int index, c_HistoryInfo value)
{
List.Insert(index, value);
}
public void Remove(c_HistoryInfo value)
{
List.Remove(value);
}
public new c_HistoryCollectionEnumerator GetEnumerator()
{
return new c_HistoryCollectionEnumerator(this);
}
public class c_HistoryCollectionEnumerator : IEnumerator
{
private IEnumerator _enumerator;
private IEnumerable _temp;
public c_HistoryCollectionEnumerator(c_HistoryCollection mappings)
{
_temp = ((IEnumerable)(mappings));
_enumerator = _temp.GetEnumerator();
}
public c_HistoryInfo Current
{
get {return ((c_HistoryInfo)(_enumerator.Current));}
}
object IEnumerator.Current
{
get {return _enumerator.Current;}
}
public bool MoveNext()
{
return _enumerator.MoveNext();
}
bool IEnumerator.MoveNext()
{
return _enumerator.MoveNext();
}
public void Reset()
{
_enumerator.Reset();
}
void IEnumerator.Reset()
{
_enumerator.Reset();
}
}
public c_HistoryCollection()
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -