Search Results for

    Show / Hide Table of Contents

    Class FuncBasedPluralForm

    Defines plural form computation based on a Func<T, TResult>.

    Inheritance
    object
    FuncBasedPluralForm
    Implements
    IPluralForm
    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 FuncBasedPluralForm : IPluralForm

    Constructors

    | Edit this page View Source

    FuncBasedPluralForm(int, Func<int, int>)

    Creates a new instance of FuncBasedPluralForm.

    Declaration
    public FuncBasedPluralForm(int numberOfPluralForms, Func<int, int> pluralFormCompute)
    Parameters
    Type Name Description
    int numberOfPluralForms

    The number of plural forms.

    Func<int, int> pluralFormCompute

    The Func<T, TResult> to compute the plural form.

    Properties

    | Edit this page View Source

    NumberOfPluralForms

    Gets the number of plural forms.

    Declaration
    public int NumberOfPluralForms { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    GetPluralFormForQuantity(int)

    Get the plural form for the specified quantity.

    Declaration
    public int GetPluralFormForQuantity(int quantity)
    Parameters
    Type Name Description
    int quantity

    The quantity.

    Returns
    Type Description
    int

    The plural form.

    Implements

    IPluralForm
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX