Table of Contents

Class TypeExtention

Namespace
HeBianGu.Service.Mvc
Assembly
HeBianGu.Service.Mvc.dll
public static class TypeExtention
Inheritance
TypeExtention
Inherited Members

Methods

GetAllTypeOfMatch(Assembly, Predicate<Type>)

public static List<Type> GetAllTypeOfMatch(this Assembly assembly, Predicate<Type> match)

Parameters

assembly Assembly
match Predicate<Type>

Returns

List<Type>

GetTypeOfMatch(IEnumerable<Assembly>, Predicate<Type>)

public static Type GetTypeOfMatch(this IEnumerable<Assembly> assemblys, Predicate<Type> match)

Parameters

assemblys IEnumerable<Assembly>
match Predicate<Type>

Returns

Type

GetTypeOfMatch(Assembly, Predicate<Type>)

public static Type GetTypeOfMatch(this Assembly assembly, Predicate<Type> match)

Parameters

assembly Assembly
match Predicate<Type>

Returns

Type

GetTypeOfMatch<T>(Assembly, Predicate<Type>)

public static Type GetTypeOfMatch<T>(this Assembly assembly, Predicate<Type> match = null)

Parameters

assembly Assembly
match Predicate<Type>

Returns

Type

Type Parameters

T

GetTypeWithAttribute<TAttribute>(Assembly, Predicate<TAttribute>)

public static Type GetTypeWithAttribute<TAttribute>(this Assembly assembly, Predicate<TAttribute> match) where TAttribute : Attribute

Parameters

assembly Assembly
match Predicate<TAttribute>

Returns

Type

Type Parameters

TAttribute