Interface IPortableObjectEntry
Represents an entry of the PortableObject file.
Namespace: MGR.PortableObject
Assembly: MGR.PortableObject.dll
Syntax
public interface IPortableObjectEntry
Properties
| Edit this page View SourceComments
Gets the comments for the current entry.
Declaration
IEnumerable<PortableObjectCommentBase> Comments { get; }
Property Value
Type | Description |
---|---|
IEnumerable<PortableObjectCommentBase> |
Count
Gets the number of translations in this entry.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
int |
HasTranslation
Indicates if the current entry has at least one translation.
Declaration
bool HasTranslation { get; }
Property Value
Type | Description |
---|---|
bool |
Key
Gets the key corresponding to the entry.
Declaration
PortableObjectKey Key { get; }
Property Value
Type | Description |
---|---|
PortableObjectKey |
Methods
| Edit this page View SourceGetTranslation(int)
Gets the translation for the specified quantity from the current entry.
Declaration
string GetTranslation(int quantity)
Parameters
Type | Name | Description |
---|---|---|
int | quantity | The quantity. |
Returns
Type | Description |
---|---|
string | A string representing the requested translation. |