//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace Server.Engines.Reports
{
using System;
using System.Collections;
///
/// Strongly typed collection of Server.Engines.Reports.PageInfo.
///
public class PageInfoCollection : System.Collections.CollectionBase
{
///
/// Default constructor.
///
public PageInfoCollection()
: base()
{
}
///
/// Gets or sets the value of the Server.Engines.Reports.PageInfo at a specific position in the PageInfoCollection.
///
public Server.Engines.Reports.PageInfo this[int index]
{
get
{
return ((Server.Engines.Reports.PageInfo)(this.List[index]));
}
set
{
this.List[index] = value;
}
}
///
/// Append a Server.Engines.Reports.PageInfo entry to this collection.
///
/// Server.Engines.Reports.PageInfo instance.
/// The position into which the new element was inserted.
public int Add(Server.Engines.Reports.PageInfo value)
{
return this.List.Add(value);
}
///
/// Determines whether a specified Server.Engines.Reports.PageInfo instance is in this collection.
///
/// Server.Engines.Reports.PageInfo instance to search for.
/// True if the Server.Engines.Reports.PageInfo instance is in the collection; otherwise false.
public bool Contains(Server.Engines.Reports.PageInfo value)
{
return this.List.Contains(value);
}
///
/// Retrieve the index a specified Server.Engines.Reports.PageInfo instance is in this collection.
///
/// Server.Engines.Reports.PageInfo instance to find.
/// The zero-based index of the specified Server.Engines.Reports.PageInfo instance. If the object is not found, the return value is -1.
public int IndexOf(Server.Engines.Reports.PageInfo value)
{
return this.List.IndexOf(value);
}
///
/// Removes a specified Server.Engines.Reports.PageInfo instance from this collection.
///
/// The Server.Engines.Reports.PageInfo instance to remove.
public void Remove(Server.Engines.Reports.PageInfo value)
{
this.List.Remove(value);
}
///
/// Returns an enumerator that can iterate through the Server.Engines.Reports.PageInfo instance.
///
/// An Server.Engines.Reports.PageInfo's enumerator.
public new PageInfoCollectionEnumerator GetEnumerator()
{
return new PageInfoCollectionEnumerator(this);
}
///
/// Insert a Server.Engines.Reports.PageInfo instance into this collection at a specified index.
///
/// Zero-based index.
/// The Server.Engines.Reports.PageInfo instance to insert.
public void Insert(int index, Server.Engines.Reports.PageInfo value)
{
this.List.Insert(index, value);
}
///
/// Strongly typed enumerator of Server.Engines.Reports.PageInfo.
///
public class PageInfoCollectionEnumerator : System.Collections.IEnumerator
{
///
/// Collection to enumerate.
///
private readonly PageInfoCollection _collection;
///
/// Current index
///
private int _index;
///
/// Current element pointed to.
///
private Server.Engines.Reports.PageInfo _currentElement;
///
/// Default constructor for enumerator.
///
/// Instance of the collection to enumerate.
internal PageInfoCollectionEnumerator(PageInfoCollection collection)
{
this._index = -1;
this._collection = collection;
}
///
/// Gets the Server.Engines.Reports.PageInfo object in the enumerated PageInfoCollection currently indexed by this instance.
///
public Server.Engines.Reports.PageInfo Current
{
get
{
if (((this._index == -1) ||
(this._index >= this._collection.Count)))
{
throw new System.IndexOutOfRangeException("Enumerator not started.");
}
else
{
return this._currentElement;
}
}
}
///
/// Gets the current element in the collection.
///
object IEnumerator.Current
{
get
{
if (((this._index == -1) ||
(this._index >= this._collection.Count)))
{
throw new System.IndexOutOfRangeException("Enumerator not started.");
}
else
{
return this._currentElement;
}
}
}
///
/// Reset the cursor, so it points to the beginning of the enumerator.
///
public void Reset()
{
this._index = -1;
this._currentElement = null;
}
///
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
///
/// true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.
public bool MoveNext()
{
if ((this._index <
(this._collection.Count - 1)))
{
this._index = (this._index + 1);
this._currentElement = this._collection[this._index];
return true;
}
this._index = this._collection.Count;
return false;
}
}
}
}