Show / Hide Table of Contents

Class TypeList<TBaseType>

Extends to add restriction a specific base type.

Inheritance
System.Object
TypeList<TBaseType>
TypeList
DataSeedContributorList
Implements
ITypeList<TBaseType>
IList<Type>
Namespace: Volo.Abp.Collections
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()

Creates a new TypeList<TBaseType> object.

Declaration
public TypeList()

Properties

Count

Gets the 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
Type Description
Type

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
Name Description
T

Clear()

Declaration
public void Clear()

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
Name Description
T

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
Name Description
T

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
Name Description
T

Implements

ITypeList<TBaseType>
IList<>

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft