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