ReflectionWays Enumeration
Represents the possible ways of reflection for the methods of the
Reflector class.
Namespace: KGySoft.ReflectionAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public enum ReflectionWays
Public Enumeration ReflectionWays
public enum class ReflectionWays
Auto | 0 |
Auto decision. In most cases it uses the DynamicDelegate way.
|
DynamicDelegate | 1 |
Dynamic delegate way. This option uses cached MemberAccessor instances for reflection.
In this case first access of a member is slower than accessing it via system reflection but further accesses are much more faster.
|
SystemReflection | 2 |
Uses the standard system reflection way.
|
TypeDescriptor | 3 |
Uses the type descriptor way. If there is no ICustomTypeDescriptor implementation for an instance,
then this can be the slowest way as it internally falls back to use system reflection. Not applicable in all cases.
|