nodekeycollection.cs
来自「飞信的收发使用csharp进行开发」· CS 代码 · 共 65 行
CS
65 行
namespace Imps.Client.Pc.UIContactList
{
using Imps.Client.Pc.BizControls;
using System;
using System.Collections;
using System.Collections.Generic;
public class NodeKeyCollection : ICollection<NodeKey>, IEnumerable<NodeKey>, IEnumerable
{
private List<NodeKey> _col = new List<NodeKey>();
public void Add(NodeKey item)
{
this._col.Add(item);
}
public void Clear()
{
this._col.Clear();
}
public bool Contains(NodeKey item)
{
return this._col.Contains(item);
}
public void CopyTo(NodeKey[] array, int arrayIndex)
{
throw new NotSupportedException();
}
public IEnumerator<NodeKey> GetEnumerator()
{
return this._col.GetEnumerator();
}
public bool Remove(NodeKey item)
{
return this._col.Remove(item);
}
IEnumerator IEnumerable.GetEnumerator()
{
return this.GetEnumerator();
}
public int Count
{
get
{
return this._col.Count;
}
}
public bool IsReadOnly
{
get
{
return this._col.IsReadOnly;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?