C# Class FluentValidation.Resources.StaticResourceAccessorBuilder

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

Public Methods

Method Description
GetResourceAccessor ( Type resourceType, string resourceName ) : ResourceAccessor

Builds a function used to retrieve the resource.

Protected Methods

Method 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 method

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

GetResourceProperty() protected method

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
return System.Reflection.PropertyInfo