C# Class NLog.Internal.ReflectionHelpers

Reflection helpers.
Exibir arquivo Open project: NLog/NLog

Public Methods

Method Description
CreateLateBoundMethod ( MethodInfo methodInfo ) : LateBoundMethod

Creates an optimized delegate for calling the MethodInfo using Expression-Trees

IsStaticClass ( this type ) : bool

Is this a static class?

This is a work around, as Type doesn't have this property. From: http://stackoverflow.com/questions/1175888/determine-if-a-type-is-static

SafeGetTypes ( this assembly ) : System.Type[]

Gets all usable exported types from the given assembly.

Types which cannot be loaded are skipped.

Method Details

CreateLateBoundMethod() public static method

Creates an optimized delegate for calling the MethodInfo using Expression-Trees
public static CreateLateBoundMethod ( MethodInfo methodInfo ) : LateBoundMethod
methodInfo System.Reflection.MethodInfo Method to optimize
return LateBoundMethod

IsStaticClass() public static method

Is this a static class?
This is a work around, as Type doesn't have this property. From: http://stackoverflow.com/questions/1175888/determine-if-a-type-is-static
public static IsStaticClass ( this type ) : bool
type this
return bool

SafeGetTypes() public static method

Gets all usable exported types from the given assembly.
Types which cannot be loaded are skipped.
public static SafeGetTypes ( this assembly ) : System.Type[]
assembly this Assembly to scan.
return System.Type[]