Search Results for

    Show / Hide Table of Contents

    Class PortableObjectEntry

    Default implementation of an entry with translations.

    Inheritance
    object
    PortableObjectEntry
    Implements
    IPortableObjectEntry
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MGR.PortableObject
    Assembly: MGR.PortableObject.dll
    Syntax
    public class PortableObjectEntry : IPortableObjectEntry

    Constructors

    | Edit this page View Source

    PortableObjectEntry(PortableObjectKey, IPluralForm, string[], IEnumerable<PortableObjectCommentBase>)

    Create a new instance of a PortableObjectEntry.

    Declaration
    public PortableObjectEntry(PortableObjectKey portableObjectKey, IPluralForm pluralForm, string[] translations, IEnumerable<PortableObjectCommentBase> comments)
    Parameters
    Type Name Description
    PortableObjectKey portableObjectKey

    The PortableObjectKey of the entry.

    IPluralForm pluralForm

    The plural form computation.

    string[] translations

    The translations of the entry.

    IEnumerable<PortableObjectCommentBase> comments

    The comments of the entry.

    Properties

    | Edit this page View Source

    Comments

    Gets the comments for the current entry.

    Declaration
    public IEnumerable<PortableObjectCommentBase> Comments { get; }
    Property Value
    Type Description
    IEnumerable<PortableObjectCommentBase>
    | Edit this page View Source

    Count

    Gets the number of translations in this entry.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    HasTranslation

    Indicates if the current entry has at least one translation.

    Declaration
    public bool HasTranslation { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Key

    Gets the key corresponding to the entry.

    Declaration
    public PortableObjectKey Key { get; }
    Property Value
    Type Description
    PortableObjectKey

    Methods

    | Edit this page View Source

    GetTranslation(int)

    Gets the translation for the specified quantity from the current entry.

    Declaration
    public string GetTranslation(int quantity)
    Parameters
    Type Name Description
    int quantity

    The quantity.

    Returns
    Type Description
    string

    A string representing the requested translation.

    Implements

    IPortableObjectEntry

    Extension Methods

    PortableObjectEntryExtensions.GetTranslation(IPortableObjectEntry)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX