C# Class KellermanSoftware.CompareNetObjects.Cache

Cache for properties, fields, and methods to speed up reflection
Afficher le fichier Open project: GregFinzer/Compare-Net-Objects

Méthodes publiques

Méthode Description
ClearCache ( ) : void

Clear the cache

GetFieldInfo ( ComparisonConfig config, Type type ) : IEnumerable

Get a list of the fields within a type

GetMethod ( Type type, string methodName ) : MethodInfo

Get a method by name

GetMethods ( Type type ) : IEnumerable

Get the cached methods for a type

GetPropertyInfo ( ComparisonResult result, Type type ) : IEnumerable

Get a list of the properties in a type

GetPropertyValue ( ComparisonResult result, Type type, object objectValue, string propertyName ) : object

Get the value of a property

Private Methods

Méthode Description
Cache ( ) : System

Static constructor

Method Details

ClearCache() public static méthode

Clear the cache
public static ClearCache ( ) : void
Résultat void

GetFieldInfo() public static méthode

Get a list of the fields within a type
public static GetFieldInfo ( ComparisonConfig config, Type type ) : IEnumerable
config ComparisonConfig
type System.Type
Résultat IEnumerable

GetMethod() public static méthode

Get a method by name
public static GetMethod ( Type type, string methodName ) : MethodInfo
type System.Type
methodName string
Résultat System.Reflection.MethodInfo

GetMethods() public static méthode

Get the cached methods for a type
public static GetMethods ( Type type ) : IEnumerable
type System.Type
Résultat IEnumerable

GetPropertyInfo() public static méthode

Get a list of the properties in a type
public static GetPropertyInfo ( ComparisonResult result, Type type ) : IEnumerable
result ComparisonResult
type System.Type
Résultat IEnumerable

GetPropertyValue() public static méthode

Get the value of a property
public static GetPropertyValue ( ComparisonResult result, Type type, object objectValue, string propertyName ) : object
result ComparisonResult
type System.Type
objectValue object
propertyName string
Résultat object