C# Class FluentValidation.Resources.StaticResourceAccessorBuilder

Builds a delegate for retrieving a localised resource from a resource type and property name.
Inheritance: IResourceAccessorBuilder
Afficher le fichier Open project: JeremySkinner/FluentValidation

Méthodes publiques

Méthode Description
GetResourceAccessor ( Type resourceType, string resourceName ) : ResourceAccessor

Builds a function used to retrieve the resource.

Méthodes protégées

Méthode Description
GetResourceProperty ( Type &resourceType, string &resourceName ) : PropertyInfo

Gets the PropertyInfo for a resource. ResourceType and ResourceName are ref parameters to allow derived types to replace the type/name of the resource before the delegate is constructed.

Method Details

GetResourceAccessor() public méthode

Builds a function used to retrieve the resource.
public GetResourceAccessor ( Type resourceType, string resourceName ) : ResourceAccessor
resourceType System.Type
resourceName string
Résultat ResourceAccessor

GetResourceProperty() protected méthode

Gets the PropertyInfo for a resource. ResourceType and ResourceName are ref parameters to allow derived types to replace the type/name of the resource before the delegate is constructed.
protected GetResourceProperty ( Type &resourceType, string &resourceName ) : PropertyInfo
resourceType System.Type
resourceName string
Résultat System.Reflection.PropertyInfo