C# Class Sage.ResourceManagement.ResourceName

Represents the path of the resource that may be globalized.
Afficher le fichier Open project: igorfrance/sage Class Usage Examples

Méthodes publiques

Méthode Description
ResourceName ( string filePath, CategoryInfo category ) : System

Initializes a new instance of the ResourceName class.

ToLocale ( string locale ) : string

Returns the locale-specific version of this resource name.

ToLocalePath ( string locale ) : string

Returns the locale-specific version of this resource path.

Private Methods

Méthode Description
DiscoverLocale ( string fileName, CategoryInfo category ) : string

Method Details

ResourceName() public méthode

Initializes a new instance of the ResourceName class.
public ResourceName ( string filePath, CategoryInfo category ) : System
filePath string The full path of a file.
category Sage.Configuration.CategoryInfo The resource's category.
Résultat System

ToLocale() public méthode

Returns the locale-specific version of this resource name.
public ToLocale ( string locale ) : string
locale string The locale to use (e.g. fr).
Résultat string

ToLocalePath() public méthode

Returns the locale-specific version of this resource path.
public ToLocalePath ( string locale ) : string
locale string The locale to use (e.g. fr).
Résultat string