Class OptimizedReflection
Inheritance
object
OptimizedReflection
Assembly: solution.dll
Syntax
public static class OptimizedReflection
Fields
jitAvailable
Declaration
public static readonly bool jitAvailable
Field Value
Properties
safeMode
Declaration
public static bool safeMode { get; set; }
Property Value
useJitIfAvailable
Declaration
public static bool useJitIfAvailable { get; set; }
Property Value
Methods
ClearCache()
Declaration
public static void ClearCache()
GetValueOptimized(FieldInfo, object)
Declaration
public static object GetValueOptimized(this FieldInfo fieldInfo, object target)
Parameters
| Type |
Name |
Description |
| FieldInfo |
fieldInfo |
|
| object |
target |
|
Returns
GetValueOptimized(PropertyInfo, object)
Declaration
public static object GetValueOptimized(this PropertyInfo propertyInfo, object target)
Parameters
| Type |
Name |
Description |
| PropertyInfo |
propertyInfo |
|
| object |
target |
|
Returns
InvokeOptimized(MethodInfo, object)
Declaration
public static object InvokeOptimized(this MethodInfo methodInfo, object target)
Parameters
| Type |
Name |
Description |
| MethodInfo |
methodInfo |
|
| object |
target |
|
Returns
InvokeOptimized(MethodInfo, object, object)
Declaration
public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0)
Parameters
| Type |
Name |
Description |
| MethodInfo |
methodInfo |
|
| object |
target |
|
| object |
arg0 |
|
Returns
InvokeOptimized(MethodInfo, object, object, object)
Declaration
public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0, object arg1)
Parameters
| Type |
Name |
Description |
| MethodInfo |
methodInfo |
|
| object |
target |
|
| object |
arg0 |
|
| object |
arg1 |
|
Returns
InvokeOptimized(MethodInfo, object, object, object, object)
Declaration
public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0, object arg1, object arg2)
Parameters
| Type |
Name |
Description |
| MethodInfo |
methodInfo |
|
| object |
target |
|
| object |
arg0 |
|
| object |
arg1 |
|
| object |
arg2 |
|
Returns
InvokeOptimized(MethodInfo, object, object, object, object, object)
Declaration
public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0, object arg1, object arg2, object arg3)
Parameters
| Type |
Name |
Description |
| MethodInfo |
methodInfo |
|
| object |
target |
|
| object |
arg0 |
|
| object |
arg1 |
|
| object |
arg2 |
|
| object |
arg3 |
|
Returns
InvokeOptimized(MethodInfo, object, object, object, object, object, object)
Declaration
public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0, object arg1, object arg2, object arg3, object arg4)
Parameters
| Type |
Name |
Description |
| MethodInfo |
methodInfo |
|
| object |
target |
|
| object |
arg0 |
|
| object |
arg1 |
|
| object |
arg2 |
|
| object |
arg3 |
|
| object |
arg4 |
|
Returns
InvokeOptimized(MethodInfo, object, params object[])
Declaration
public static object InvokeOptimized(this MethodInfo methodInfo, object target, params object[] args)
Parameters
| Type |
Name |
Description |
| MethodInfo |
methodInfo |
|
| object |
target |
|
| object[] |
args |
|
Returns
Prewarm(FieldInfo)
Declaration
public static IOptimizedAccessor Prewarm(this FieldInfo fieldInfo)
Parameters
| Type |
Name |
Description |
| FieldInfo |
fieldInfo |
|
Returns
Prewarm(MethodInfo)
Declaration
public static IOptimizedInvoker Prewarm(this MethodInfo methodInfo)
Parameters
| Type |
Name |
Description |
| MethodInfo |
methodInfo |
|
Returns
Prewarm(PropertyInfo)
Declaration
public static IOptimizedAccessor Prewarm(this PropertyInfo propertyInfo)
Parameters
| Type |
Name |
Description |
| PropertyInfo |
propertyInfo |
|
Returns
SetValueOptimized(FieldInfo, object, object)
Declaration
public static void SetValueOptimized(this FieldInfo fieldInfo, object target, object value)
Parameters
| Type |
Name |
Description |
| FieldInfo |
fieldInfo |
|
| object |
target |
|
| object |
value |
|
SetValueOptimized(PropertyInfo, object, object)
Declaration
public static void SetValueOptimized(this PropertyInfo propertyInfo, object target, object value)
Parameters
| Type |
Name |
Description |
| PropertyInfo |
propertyInfo |
|
| object |
target |
|
| object |
value |
|
SupportsOptimization(FieldInfo)
Declaration
public static bool SupportsOptimization(this FieldInfo fieldInfo)
Parameters
| Type |
Name |
Description |
| FieldInfo |
fieldInfo |
|
Returns
SupportsOptimization(MethodInfo)
Declaration
public static bool SupportsOptimization(this MethodInfo methodInfo)
Parameters
| Type |
Name |
Description |
| MethodInfo |
methodInfo |
|
Returns
SupportsOptimization(PropertyInfo)
Declaration
public static bool SupportsOptimization(this PropertyInfo propertyInfo)
Parameters
| Type |
Name |
Description |
| PropertyInfo |
propertyInfo |
|
Returns