using System;
using System.Collections;
namespace System.ComponentModel
{
/// Represents a collection of objects.
// Token: 0x020000A8 RID: 168
public class ListSortDescriptionCollection : ICollection, IEnumerable, IList
{
/// Initializes a new instance of the class.
// Token: 0x06000565 RID: 1381 RVA: 0x0000E368 File Offset: 0x0000C568
public ListSortDescriptionCollection()
{
this.list = new ArrayList();
}
/// Initializes a new instance of the class with the specified array of objects.
/// The array of objects to be contained in the collection.
// Token: 0x06000566 RID: 1382 RVA: 0x0000E37C File Offset: 0x0000C57C
public ListSortDescriptionCollection(ListSortDescription[] sorts)
{
this.list = new ArrayList();
foreach (ListSortDescription listSortDescription in sorts)
{
this.list.Add(listSortDescription);
}
}
/// Gets the specified .
/// The with the specified index.
/// The zero-based index of the to get in the collection
// Token: 0x17000167 RID: 359
object IList.this[int index]
{
get
{
return this[index];
}
set
{
throw new InvalidOperationException("ListSortDescriptorCollection is read only.");
}
}
/// Gets a value indicating whether the collection has a fixed size.
/// true in all cases.
// Token: 0x17000168 RID: 360
// (get) Token: 0x06000569 RID: 1385 RVA: 0x0000E3DC File Offset: 0x0000C5DC
bool IList.IsFixedSize
{
get
{
return this.list.IsFixedSize;
}
}
/// Gets a value indicating whether access to the collection is thread safe.
/// true in all cases.
// Token: 0x17000169 RID: 361
// (get) Token: 0x0600056A RID: 1386 RVA: 0x0000E3EC File Offset: 0x0000C5EC
bool ICollection.IsSynchronized
{
get
{
return this.list.IsSynchronized;
}
}
/// Gets the current instance that can be used to synchronize access to the collection.
/// The current instance of the .
// Token: 0x1700016A RID: 362
// (get) Token: 0x0600056B RID: 1387 RVA: 0x0000E3FC File Offset: 0x0000C5FC
object ICollection.SyncRoot
{
get
{
return this.list.SyncRoot;
}
}
/// Gets a value indicating whether the collection is read-only.
/// true in all cases.
// Token: 0x1700016B RID: 363
// (get) Token: 0x0600056C RID: 1388 RVA: 0x0000E40C File Offset: 0x0000C60C
bool IList.IsReadOnly
{
get
{
return this.list.IsReadOnly;
}
}
/// Gets a that can be used to iterate through the collection.
/// An that can be used to iterate through the collection.
// Token: 0x0600056D RID: 1389 RVA: 0x0000E41C File Offset: 0x0000C61C
IEnumerator IEnumerable.GetEnumerator()
{
return this.list.GetEnumerator();
}
/// Adds an item to the collection.
/// The position into which the new element was inserted.
/// The item to add to the collection.
/// In all cases.
// Token: 0x0600056E RID: 1390 RVA: 0x0000E42C File Offset: 0x0000C62C
int IList.Add(object value)
{
return this.list.Add(value);
}
/// Removes all items from the collection.
/// In all cases.
// Token: 0x0600056F RID: 1391 RVA: 0x0000E43C File Offset: 0x0000C63C
void IList.Clear()
{
this.list.Clear();
}
/// Inserts an item into the collection at a specified index.
/// The zero-based index of the to get or set in the collection
/// The item to insert into the collection.
/// In all cases.
// Token: 0x06000570 RID: 1392 RVA: 0x0000E44C File Offset: 0x0000C64C
void IList.Insert(int index, object value)
{
this.list.Insert(index, value);
}
/// Removes the first occurrence of an item from the collection.
/// The item to remove from the collection.
/// In all cases.
// Token: 0x06000571 RID: 1393 RVA: 0x0000E45C File Offset: 0x0000C65C
void IList.Remove(object value)
{
this.list.Remove(value);
}
/// Removes an item from the collection at a specified index.
/// The zero-based index of the to remove from the collection
/// In all cases.
// Token: 0x06000572 RID: 1394 RVA: 0x0000E46C File Offset: 0x0000C66C
void IList.RemoveAt(int index)
{
this.list.RemoveAt(index);
}
/// Gets the number of items in the collection.
/// The number of items in the collection.
// Token: 0x1700016C RID: 364
// (get) Token: 0x06000573 RID: 1395 RVA: 0x0000E47C File Offset: 0x0000C67C
public int Count
{
get
{
return this.list.Count;
}
}
/// Gets or sets the specified .
/// The with the specified index.
/// The zero-based index of the to get or set in the collection.
/// An item is set in the , which is read-only.
// Token: 0x1700016D RID: 365
public ListSortDescription this[int index]
{
get
{
return this.list[index] as ListSortDescription;
}
set
{
throw new InvalidOperationException("ListSortDescriptorCollection is read only.");
}
}
/// Determines if the contains a specific value.
/// true if the is found in the collection; otherwise, false.
/// The to locate in the collection.
// Token: 0x06000576 RID: 1398 RVA: 0x0000E4AC File Offset: 0x0000C6AC
public bool Contains(object value)
{
return this.list.Contains(value);
}
/// Copies the contents of the collection to the specified array, starting at the specified destination array index.
/// The destination array for the items copied from the collection.
/// The index of the destination array at which copying begins.
// Token: 0x06000577 RID: 1399 RVA: 0x0000E4BC File Offset: 0x0000C6BC
public void CopyTo(Array array, int index)
{
this.list.CopyTo(array, index);
}
/// Returns the index of the specified item in the collection.
/// The index of if found in the list; otherwise, -1.
/// The to locate in the collection.
// Token: 0x06000578 RID: 1400 RVA: 0x0000E4CC File Offset: 0x0000C6CC
public int IndexOf(object value)
{
return this.list.IndexOf(value);
}
// Token: 0x0400019D RID: 413
private ArrayList list;
}
}