Show / Hide Table of Contents

Interface ITypeList<TBaseType>

Extends to add restriction a specific base type.

Namespace: Volo.Abp.Collections
Assembly: Volo.Abp.Core.dll
Syntax
public interface ITypeList<in TBaseType> : IList<Type>
Type Parameters
Name Description
TBaseType

Base Type of s in this list

Methods

Add<T>()

Adds a type to list.

Declaration
void Add<T>()

    where T : TBaseType
Type Parameters
Name Description
T

Type

Contains<T>()

Checks if a type exists in the list.

Declaration
bool Contains<T>()

    where T : TBaseType
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T

Type

Remove<T>()

Removes a type from list

Declaration
void Remove<T>()

    where T : TBaseType
Type Parameters
Name Description
T

TryAdd<T>()

Adds a type to list if it's not already in the list.

Declaration
bool TryAdd<T>()

    where T : TBaseType
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T

Type

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