filecollection.cs

来自「Upload Source code in temp folder」· CS 代码 · 共 40 行

CS
40
字号
/* *************************************************
 * Development : Rajesh Lal(connectrajesh@hotmail.com)
 * Date: 04/15/2007
 * Company Info: www.csharptricks.com
 * See EULA.txt and Copyright.txt for additional information
 * **************************************************/
using System;
using System.Collections;
using System.IO;

namespace PenFlicksDemo
{
	/// <summary>
	/// Summary description for FileCollection.
	/// </summary>
	public class FileCollection : System.Collections.CollectionBase
	{
		public FileCollection()
		{
		}

		public FileInfo this[ int index ]  
		{
			get  
			{
				return( (FileInfo) List[index] );
			}
			set  
			{
				List[index] = value;
			}
		}

		public void Add(FileInfo aFileInfo)
		{
			List.Add(aFileInfo);
		}
	}
}

⌨️ 快捷键说明

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