Class OptimizedActivator
Inheritance
System.Object
OptimizedActivator
Assembly: Eco.Core.dll
Syntax
public static class OptimizedActivator : Object
Methods
BuildDelegate<T>(MethodInfo, Object[])
Builds compiled delegate of type T
(much faster than reflection) for call to method
. If T
has less arguments than method then missingParamValues
will be used or default values supplied.
Declaration
public static T BuildDelegate<T>(this MethodInfo method, params object[] missingParamValues)
where T : Delegate
Parameters
Type |
Name |
Description |
System.Reflection.MethodInfo |
method |
|
System.Object[] |
missingParamValues |
|
Returns
Type Parameters
GetActivator<T>(ConstructorInfo)
Declaration
public static OptimizedActivator.ActivatorDelegate<T> GetActivator<T>(ConstructorInfo ctor)
Parameters
Type |
Name |
Description |
System.Reflection.ConstructorInfo |
ctor |
|
Returns
Type Parameters
GetDefaultActivator<T>()
Declaration
public static OptimizedActivator.ActivatorDelegate<T> GetDefaultActivator<T>()
Returns
Type Parameters