Discuz.Entity/Album/PhotoInfoCollection.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#if NET1
using System;
using System.Collections;
namespace Discuz.Entity
{
/// <summary>
/// PhotoInfoCollection 的摘要说明。
/// </summary>
public class PhotoInfoCollection: CollectionBase
{
/// <summary>
/// Initializes a new instance of the <see cref="PhotoInfoCollection">PhotoInfoCollection</see> class.
/// </summary>
public PhotoInfoCollection()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="PhotoInfoCollection">PhotoInfoCollection</see> class containing the elements of the specified source collection.
/// </summary>
/// <param name="value">A <see cref="PhotoInfoCollection">PhotoInfoCollection</see> with which to initialize the collection.</param>
public PhotoInfoCollection(PhotoInfoCollection value)
{
this.AddRange(value);
}
/// <summary>
/// Initializes a new instance of the <see cref="PhotoInfoCollection">PhotoInfoCollection</see> class containing the specified array of <see cref="PhotoInfo">PhotoInfo</see> Components.
/// </summary>
/// <param name="value">An array of <see cref="PhotoInfo">PhotoInfo</see> Components with which to initialize the collection. </param>
public PhotoInfoCollection(PhotoInfo[] value)
{
this.AddRange(value);
}
/// <summary>
/// Gets the <see cref="PhotoInfoCollection">PhotoInfoCollection</see> at the specified index in the collection.
/// <para>
/// In C#, this property is the indexer for the <see cref="PhotoInfoCollection">PhotoInfoCollection</see> class.
/// </para>
/// </summary>
public PhotoInfo this[int index]
{
get {return ((PhotoInfo)(this.List[index]));}
}
public int Add(PhotoInfo value)
{
return this.List.Add(value);
}
/// <summary>
/// Copies the elements of the specified <see cref="PhotoInfo">PhotoInfo</see> array to the end of the collection.
/// </summary>
/// <param name="value">An array of type <see cref="PhotoInfo">PhotoInfo</see> containing the Components to add to the collection.</param>
public void AddRange(PhotoInfo[] value)
{
后面还有 140 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
