Class Catalog
Default implementation of a ICatalog.
Implements
Inherited Members
Namespace: MGR.PortableObject
Assembly: MGR.PortableObject.dll
Syntax
public class Catalog : ICatalog
Constructors
| Edit this page View SourceCatalog(Dictionary<PortableObjectKey, IPortableObjectEntry>, CultureInfo)
Creates a new instance of Catalog.
Declaration
public Catalog(Dictionary<PortableObjectKey, IPortableObjectEntry> entries, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<PortableObjectKey, IPortableObjectEntry> | entries | The different entries composing the catalog. |
CultureInfo | culture | The culture of the catalog |
Properties
| Edit this page View SourceCount
Gets the number of translation in the current catalog.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
Culture
Gets the culture for the current catalog.
Declaration
public CultureInfo Culture { get; }
Property Value
Type | Description |
---|---|
CultureInfo |
Methods
| Edit this page View SourceGetEntry(PortableObjectKey)
Gets an entry from the current catalog for the specified key.
Declaration
public IPortableObjectEntry GetEntry(PortableObjectKey key)
Parameters
Type | Name | Description |
---|---|---|
PortableObjectKey | key | A key. |
Returns
Type | Description |
---|---|
IPortableObjectEntry | The entry corresponding to the key. |