UploadFileCollection.cs
上传用户:whjkdz
上传日期:2013-05-19
资源大小:79k
文件大小:2k
- #region License
- /*
- * SunriseUpload - Asp.net Upload Component
- *
- * Copyright (C) 2004 mic <mic4free@hotmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * In case your copy of SunriseUpload does not include a copy of the license, you may find it online at
- * http://www.gnu.org/copyleft/gpl.html
- *
- * You can find new release of this component at http://athena.9966.org/SunriseUpload .
- */
- #endregion
- using System;
- using System.Collections;
- namespace Sunrise.Web.Upload
- {
- /// <summary>
- /// A simple collection class of upload file
- /// </summary>
- public class UploadFileCollection : ICollection, IEnumerable
- {
- #region Fields
- private ArrayList filelist;
- #endregion
- #region Properties
- public int Count
- {
- get { return this.filelist.Count; }
- }
- #endregion
- #region Methods
- public bool IsSynchronized
- {
- get { return this.filelist.IsSynchronized; }
- }
- public UploadFile this[int index]
- {
- get { return ((UploadFile) this.filelist[index]); }
- }
- public object SyncRoot
- {
- get { return this.filelist.SyncRoot; }
- }
- public UploadFileCollection()
- {
- this.filelist = new ArrayList();
- }
- public void Add(UploadFile File)
- {
- this.filelist.Add(File);
- }
- public void CopyTo(Array array, int index)
- {
- this.filelist.CopyTo(array, index);
- }
- public IEnumerator GetEnumerator()
- {
- return this.filelist.GetEnumerator();
- }
- #endregion
- }
- }