using System;
namespace System.Collections.Specialized
{
/// Represents a collection of strings.
// Token: 0x02000039 RID: 57
[Serializable]
public class StringCollection : ICollection, IEnumerable, IList
{
/// Gets a value indicating whether the object is read-only.
/// true if the object is read-only; otherwise, false. The default is false.
// Token: 0x170000AA RID: 170
// (get) Token: 0x06000266 RID: 614 RVA: 0x00008F7C File Offset: 0x0000717C
bool IList.IsReadOnly
{
get
{
return false;
}
}
/// Gets a value indicating whether the object has a fixed size.
/// true if the object has a fixed size; otherwise, false. The default is false.
// Token: 0x170000AB RID: 171
// (get) Token: 0x06000267 RID: 615 RVA: 0x00008F80 File Offset: 0x00007180
bool IList.IsFixedSize
{
get
{
return false;
}
}
/// Gets or sets the element at the specified index.
/// The element at the specified index.
/// The zero-based index of the element to get or set.
///
/// is less than zero.-or- is equal to or greater than .
// Token: 0x170000AC RID: 172
object IList.this[int index]
{
get
{
return this[index];
}
set
{
this[index] = (string)value;
}
}
/// Adds an object to the end of the .
/// The index at which the has been added.
/// The to be added to the end of the . The value can be null.
/// The is read-only.-or- The has a fixed size.
// Token: 0x0600026A RID: 618 RVA: 0x00008FA0 File Offset: 0x000071A0
int IList.Add(object value)
{
return this.Add((string)value);
}
/// Determines whether an element is in the .
/// true if is found in the ; otherwise, false.
/// The to locate in the . The value can be null.
// Token: 0x0600026B RID: 619 RVA: 0x00008FB0 File Offset: 0x000071B0
bool IList.Contains(object value)
{
return this.Contains((string)value);
}
/// Searches for the specified and returns the zero-based index of the first occurrence within the entire .
/// The zero-based index of the first occurrence of within the entire , if found; otherwise, -1.
/// The to locate in the . The value can be null.
// Token: 0x0600026C RID: 620 RVA: 0x00008FC0 File Offset: 0x000071C0
int IList.IndexOf(object value)
{
return this.IndexOf((string)value);
}
/// Inserts an element into the at the specified index.
/// The zero-based index at which should be inserted.
/// The to insert. The value can be null.
///
/// is less than zero.-or- is greater than .
/// The is read-only.-or- The has a fixed size.
// Token: 0x0600026D RID: 621 RVA: 0x00008FD0 File Offset: 0x000071D0
void IList.Insert(int index, object value)
{
this.Insert(index, (string)value);
}
/// Removes the first occurrence of a specific object from the .
/// The to remove from the . The value can be null.
/// The is read-only.-or- The has a fixed size.
// Token: 0x0600026E RID: 622 RVA: 0x00008FE0 File Offset: 0x000071E0
void IList.Remove(object value)
{
this.Remove((string)value);
}
/// Copies the entire to a compatible one-dimensional , starting at the specified index of the target array.
/// The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.
/// The zero-based index in at which copying begins.
///
/// is null.
///
/// is less than zero.
///
/// is multidimensional.-or- The number of elements in the source is greater than the available space from to the end of the destination .
/// The type of the source cannot be cast automatically to the type of the destination .
// Token: 0x0600026F RID: 623 RVA: 0x00008FF0 File Offset: 0x000071F0
void ICollection.CopyTo(Array array, int index)
{
this.data.CopyTo(array, index);
}
/// Returns a that iterates through the .
/// A for the .
// Token: 0x06000270 RID: 624 RVA: 0x00009000 File Offset: 0x00007200
IEnumerator IEnumerable.GetEnumerator()
{
return this.data.GetEnumerator();
}
/// Gets or sets the element at the specified index.
/// The element at the specified index.
/// The zero-based index of the entry to get or set.
///
/// is less than zero.-or- is equal to or greater than .
// Token: 0x170000AD RID: 173
public string this[int index]
{
get
{
return (string)this.data[index];
}
set
{
this.data[index] = value;
}
}
/// Gets the number of strings contained in the .
/// The number of strings contained in the .
// Token: 0x170000AE RID: 174
// (get) Token: 0x06000273 RID: 627 RVA: 0x00009034 File Offset: 0x00007234
public int Count
{
get
{
return this.data.Count;
}
}
/// Adds a string to the end of the .
/// The zero-based index at which the new element is inserted.
/// The string to add to the end of the . The value can be null.
// Token: 0x06000274 RID: 628 RVA: 0x00009044 File Offset: 0x00007244
public int Add(string value)
{
return this.data.Add(value);
}
/// Copies the elements of a string array to the end of the .
/// An array of strings to add to the end of the . The array itself can not be null but it can contain elements that are null.
///
/// is null.
// Token: 0x06000275 RID: 629 RVA: 0x00009054 File Offset: 0x00007254
public void AddRange(string[] value)
{
if (value == null)
{
throw new ArgumentNullException("value");
}
this.data.AddRange(value);
}
/// Removes all the strings from the .
// Token: 0x06000276 RID: 630 RVA: 0x00009074 File Offset: 0x00007274
public void Clear()
{
this.data.Clear();
}
/// Determines whether the specified string is in the .
/// true if is found in the ; otherwise, false.
/// The string to locate in the . The value can be null.
// Token: 0x06000277 RID: 631 RVA: 0x00009084 File Offset: 0x00007284
public bool Contains(string value)
{
return this.data.Contains(value);
}
/// Copies the entire values to a one-dimensional array of strings, starting at the specified index of the target array.
/// The one-dimensional array of strings that is the destination of the elements copied from . The must have zero-based indexing.
/// The zero-based index in at which copying begins.
///
/// is null.
///
/// is less than zero.
///
/// is multidimensional.-or- The number of elements in the source is greater than the available space from to the end of the destination .
/// The type of the source cannot be cast automatically to the type of the destination .
// Token: 0x06000278 RID: 632 RVA: 0x00009094 File Offset: 0x00007294
public void CopyTo(string[] array, int index)
{
this.data.CopyTo(array, index);
}
/// Returns a that iterates through the .
/// A for the .
// Token: 0x06000279 RID: 633 RVA: 0x000090A4 File Offset: 0x000072A4
public StringEnumerator GetEnumerator()
{
return new StringEnumerator(this);
}
/// Searches for the specified string and returns the zero-based index of the first occurrence within the .
/// The zero-based index of the first occurrence of in the , if found; otherwise, -1.
/// The string to locate. The value can be null.
// Token: 0x0600027A RID: 634 RVA: 0x000090AC File Offset: 0x000072AC
public int IndexOf(string value)
{
return this.data.IndexOf(value);
}
/// Inserts a string into the at the specified index.
/// The zero-based index at which is inserted.
/// The string to insert. The value can be null.
///
/// is less than zero.-or- greater than .
// Token: 0x0600027B RID: 635 RVA: 0x000090BC File Offset: 0x000072BC
public void Insert(int index, string value)
{
this.data.Insert(index, value);
}
/// Gets a value indicating whether the is read-only.
/// This property always returns false.
// Token: 0x170000AF RID: 175
// (get) Token: 0x0600027C RID: 636 RVA: 0x000090CC File Offset: 0x000072CC
public bool IsReadOnly
{
get
{
return false;
}
}
/// Gets a value indicating whether access to the is synchronized (thread safe).
/// This property always returns false.
// Token: 0x170000B0 RID: 176
// (get) Token: 0x0600027D RID: 637 RVA: 0x000090D0 File Offset: 0x000072D0
public bool IsSynchronized
{
get
{
return false;
}
}
/// Removes the first occurrence of a specific string from the .
/// The string to remove from the . The value can be null.
// Token: 0x0600027E RID: 638 RVA: 0x000090D4 File Offset: 0x000072D4
public void Remove(string value)
{
this.data.Remove(value);
}
/// Removes the string at the specified index of the .
/// The zero-based index of the string to remove.
///
/// is less than zero.-or- is equal to or greater than .
// Token: 0x0600027F RID: 639 RVA: 0x000090E4 File Offset: 0x000072E4
public void RemoveAt(int index)
{
this.data.RemoveAt(index);
}
/// Gets an object that can be used to synchronize access to the .
/// An object that can be used to synchronize access to the .
// Token: 0x170000B1 RID: 177
// (get) Token: 0x06000280 RID: 640 RVA: 0x000090F4 File Offset: 0x000072F4
public object SyncRoot
{
get
{
return this;
}
}
// Token: 0x040000B2 RID: 178
private ArrayList data = new ArrayList();
}
}