KGy SOFT

KGySoft.Reflection Namespace

KGy SOFT Core Libraries Help
Contains the static Reflector class that provides most of the needed reflection tasks. Additionally, contains several classes derived from MemberAccessor that can dynamically reflect objects, their members and type information by on-the-fly generated delegates.
Classes

  ClassDescription
Public classCode exampleCreateInstanceAccessor
Provides an efficient way for creating objects via dynamically created delegates.
See the Remarks section for details and an example.
Public classCode exampleFieldAccessor
Provides an efficient way for setting and getting fields values via dynamically created delegates.
See the Remarks section for details and an example.
Public classMemberAccessor
Base class of accessor classes that may access members without system reflection. See the derived classes for more details.
Public classCode exampleMethodAccessor
Provides an efficient way for invoking methods via dynamically created delegates.
See the Remarks section for details and an example.
Public classCode examplePropertyAccessor
Provides an efficient way for setting and getting property values via dynamically created delegates.
See the Remarks section for details and an example.
Public classReflectionException
Represent a reflection error.
Public classReflector
Provides reflection routines on objects that are in most case faster than standard System.Reflection ways.
Enumerations

  EnumerationDescription
Public enumerationReflectionWays
Represents the possible ways of reflection for the methods of the Reflector class.