ReflectionWays Enumeration

Represents the possible ways of reflection for the methods of the Reflector class.

Definition

Namespace: KGySoft.Reflection
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.5.0
C#
public enum ReflectionWays

Members

Auto0 Auto decision. In most cases it uses the DynamicDelegate way.
DynamicDelegate1 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 fast.
SystemReflection2 Uses the standard system reflection way.
TypeDescriptor3 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.

Extension Methods

AllFlagsDefined Gets whether every single bit value in flags are defined in the enum type of flags, or when flags is zero, it is checked whether zero is defined in the enum type of flags.
(Defined by EnumExtensions)
IsSingleFlag Gets whether only a single bit is set in value.
(Defined by EnumExtensions)

See Also