Table of Contents

Class TypeExtensions

Namespace
Dynamicweb.Extensibility
Assembly
Dynamicweb.Core.dll

Class TypeExtensions contains extension methods for working with types.

public static class TypeExtensions
Inheritance
TypeExtensions
Inherited Members

Methods

GetTypeNameWithAssembly(Type)

Get name of the type in format "[FullName], [AssemblyName]"

public static string GetTypeNameWithAssembly(this Type type)

Parameters

type Type

Returns

string

HasCustomAttribute<T>(MemberInfo)

public static bool HasCustomAttribute<T>(this MemberInfo member) where T : Attribute

Parameters

member MemberInfo

Returns

bool

Type Parameters

T

IsDerivedFrom(Type, Type, params Type[])

public static bool IsDerivedFrom(this Type type, Type baseType, params Type[] genericTypeParameters)

Parameters

type Type
baseType Type
genericTypeParameters Type[]

Returns

bool

IsDerivedFrom<TBase>(Type, params Type[])

public static bool IsDerivedFrom<TBase>(this Type type, params Type[] genericTypeParameters)

Parameters

type Type
genericTypeParameters Type[]

Returns

bool

Type Parameters

TBase
To top