Class TypeList<TBaseType>
Extends to add restriction a specific base type.
Inheritance
System.Object
TypeList<TBaseType>
Assembly: Volo.Abp.Core.dll
Syntax
public class TypeList<TBaseType> : object, ITypeList<TBaseType>, IList<Type>
Type Parameters
Name |
Description |
TBaseType |
Base Type of s in this list
|
Constructors
TypeList()
Declaration
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
The count.
|
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
true if this instance is read only; otherwise, false .
|
Item[Int32]
Gets or sets the at the specified index.
Declaration
public Type this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
Index.
|
Property Value
Methods
Add(Type)
Declaration
public void Add(Type item)
Parameters
Type |
Name |
Description |
Type |
item |
|
Add<T>()
Declaration
public void Add<T>()
where T : TBaseType
Type Parameters
Clear()
Declaration
Contains(Type)
Declaration
public bool Contains(Type item)
Parameters
Type |
Name |
Description |
Type |
item |
|
Returns
Type |
Description |
System.Boolean |
|
Contains<T>()
Declaration
public bool Contains<T>()
where T : TBaseType
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
CopyTo(Type[], Int32)
Declaration
public void CopyTo(Type[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
Type[] |
array |
|
System.Int32 |
arrayIndex |
|
GetEnumerator()
Declaration
public IEnumerator<Type> GetEnumerator()
Returns
Type |
Description |
IEnumerator<Type> |
|
IndexOf(Type)
Declaration
public int IndexOf(Type item)
Parameters
Type |
Name |
Description |
Type |
item |
|
Returns
Type |
Description |
System.Int32 |
|
Insert(Int32, Type)
Declaration
public void Insert(int index, Type item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Type |
item |
|
Remove(Type)
Declaration
public bool Remove(Type item)
Parameters
Type |
Name |
Description |
Type |
item |
|
Returns
Type |
Description |
System.Boolean |
|
Remove<T>()
Declaration
public void Remove<T>()
where T : TBaseType
Type Parameters
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
TryAdd<T>()
Declaration
public bool TryAdd<T>()
where T : TBaseType
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
IList<>
Extension Methods