KGy SOFT

MemberAccessor Class

KGy SOFT Core Libraries Help
Base class of accessor classes that may access members without system reflection. See the derived classes for more details.
Inheritance Hierarchy

SystemObject
  KGySoft.ReflectionMemberAccessor
    KGySoft.ReflectionCreateInstanceAccessor
    KGySoft.ReflectionFieldAccessor
    KGySoft.ReflectionMethodAccessor
    KGySoft.ReflectionPropertyAccessor

Namespace:  KGySoft.Reflection
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public abstract class MemberAccessor

The MemberAccessor type exposes the following members.

Properties

  NameDescription
Public propertyMemberInfo
Gets the reflection member info of the accessed member.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current MemberAccessor.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodStatic memberGetCreateAccessor
Gets an existing or creates a new MemberAccessor for the specified memberInfo.
Public methodGetHashCode
Gets a hash code for the current MemberAccessor instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current MemberAccessor.
(Overrides ObjectToString.)
Top
Extension Methods

  NameDescription
Public Extension MethodConvert(Type, CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions.)
Public Extension MethodCode exampleConvertTTarget(CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)
Public Extension MethodIn (Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, CultureInfo, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(CultureInfo, TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Top
See Also

Reference