using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace System.Security.Principal
{
/// Represents a collection of objects and provides a means of converting sets of -derived objects to -derived types.
// Token: 0x020005AF RID: 1455
[ComVisible(false)]
public class IdentityReferenceCollection : IEnumerable, ICollection, IEnumerable
{
/// Initializes a new instance of the class with zero items in the collection.
// Token: 0x06003530 RID: 13616 RVA: 0x000B6FB4 File Offset: 0x000B51B4
public IdentityReferenceCollection()
{
this._list = new ArrayList();
}
/// Initializes a new instance of the class by using the specified initial size.
/// The initial number of items in the collection. The value of is a hint only; it is not necessarily the maximum number of items created.
// Token: 0x06003531 RID: 13617 RVA: 0x000B6FC8 File Offset: 0x000B51C8
public IdentityReferenceCollection(int capacity)
{
this._list = new ArrayList(capacity);
}
/// Gets an enumerator that can be used to iterate through the collection.
/// An enumerator for the collection.
// Token: 0x06003532 RID: 13618 RVA: 0x000B6FDC File Offset: 0x000B51DC
IEnumerator IEnumerable.GetEnumerator()
{
throw new NotImplementedException();
}
/// Gets the number of items in the collection.
/// The number of objects in the collection.
// Token: 0x17000A70 RID: 2672
// (get) Token: 0x06003533 RID: 13619 RVA: 0x000B6FE4 File Offset: 0x000B51E4
public int Count
{
get
{
return this._list.Count;
}
}
/// Gets a value that indicates whether the collection is read-only.
/// true if the collection is read-only.
// Token: 0x17000A71 RID: 2673
// (get) Token: 0x06003534 RID: 13620 RVA: 0x000B6FF4 File Offset: 0x000B51F4
public bool IsReadOnly
{
get
{
return false;
}
}
/// Sets or gets the node at the specified index of the collection.
/// The at the specified index in the collection. If is greater than or equal to the number of nodes in the collection, the return value is null.
/// The zero-based index in the collection.
// Token: 0x17000A72 RID: 2674
public IdentityReference this[int index]
{
get
{
if (index >= this._list.Count)
{
return null;
}
return (IdentityReference)this._list[index];
}
set
{
this._list[index] = value;
}
}
/// Adds an object to the collection.
/// The object to add to the collection.
// Token: 0x06003537 RID: 13623 RVA: 0x000B703C File Offset: 0x000B523C
public void Add(IdentityReference identity)
{
this._list.Add(identity);
}
/// Clears all objects from the collection.
// Token: 0x06003538 RID: 13624 RVA: 0x000B704C File Offset: 0x000B524C
public void Clear()
{
this._list.Clear();
}
/// Indicates whether the collection contains the specified object.
/// true if the collection contains the specified object.
/// The object to check for.
// Token: 0x06003539 RID: 13625 RVA: 0x000B705C File Offset: 0x000B525C
public bool Contains(IdentityReference identity)
{
foreach (object obj in this._list)
{
IdentityReference identityReference = (IdentityReference)obj;
if (identityReference.Equals(identity))
{
return true;
}
}
return false;
}
/// Copies the collection to an array, starting at the specified index.
/// An array object to which the collection is to be copied.
/// The zero-based index in where the collection is to be copied.
// Token: 0x0600353A RID: 13626 RVA: 0x000B70DC File Offset: 0x000B52DC
public void CopyTo(IdentityReference[] array, int offset)
{
throw new NotImplementedException();
}
/// Gets an enumerator that can be used to iterate through the collection.
/// An enumerator for the collection.
// Token: 0x0600353B RID: 13627 RVA: 0x000B70E4 File Offset: 0x000B52E4
public IEnumerator GetEnumerator()
{
throw new NotImplementedException();
}
/// Removes the specified object from the collection.
/// true if the specified object was removed from the collection.
/// The object to remove.
// Token: 0x0600353C RID: 13628 RVA: 0x000B70EC File Offset: 0x000B52EC
public bool Remove(IdentityReference identity)
{
foreach (object obj in this._list)
{
IdentityReference identityReference = (IdentityReference)obj;
if (identityReference.Equals(identity))
{
this._list.Remove(identityReference);
return true;
}
}
return false;
}
/// Converts the objects in the collection to the specified type. Calling this method is the same as calling with the second parameter set to false, which means that exceptions will not be thrown for items that fail conversion.
/// A collection that represents the converted contents of the original collection.
/// The type to which items in the collection are being converted.
///
///
///
// Token: 0x0600353D RID: 13629 RVA: 0x000B7178 File Offset: 0x000B5378
public IdentityReferenceCollection Translate(Type targetType)
{
throw new NotImplementedException();
}
/// Converts the objects in the collection to the specified type and uses the specified fault tolerance to handle or ignore errors associated with a type not having a conversion mapping.
/// A collection that represents the converted contents of the original collection.
/// The type to which items in the collection are being converted.
/// A Boolean value that determines how conversion errors are handled.If is true, conversion errors due to a mapping not being found for the translation result in a failed conversion and exceptions being thrown.If is false, types that failed to convert due to a mapping not being found for the translation are copied without being converted into the collection being returned.
///
///
///
// Token: 0x0600353E RID: 13630 RVA: 0x000B7180 File Offset: 0x000B5380
public IdentityReferenceCollection Translate(Type targetType, bool forceSuccess)
{
throw new NotImplementedException();
}
// Token: 0x04001593 RID: 5523
private ArrayList _list;
}
}