⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 replyindex.cs

📁 c#编的CSDN离线助手
💻 CS
字号:
/// <Copyright>
/// This Program Written By Luyan(5drush)
/// 2002/4/23
/// Email:nluyan@163.net
/// QQ:5743345
/// </Copyright>
using System;
using System.Collections;

namespace CSDN
{
	/// <summary>
	/// Reply索引器
	/// </summary>
	public class ReplyIndex
	{

		private ArrayList replyIndex = new ArrayList();

		public ReplyIndex()
		{

		}

		public int Length
		{
			get
			{
				return replyIndex.Count;
			}
		}

		public Reply this[int index]
		{
			get
			{
				if(index > -1 && index < replyIndex.Count)
				{
					return (Reply)replyIndex[index];
				}
				else
				{
					throw new IndexOutOfRangeException();
				}
			}
			set
			{
				if(index > -1 && index < replyIndex.Count)
				{
					replyIndex[index] = value;
				}
				else if(index == replyIndex.Count)
				{
					replyIndex.Add(value);
				}
				else
				{
					throw new IndexOutOfRangeException();
				}
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -