This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Claunia.Localization/Claunia.Localization.Core/Plural.cs
2019-05-23 22:15:57 +01:00

40 lines
912 B
C#

using System;
namespace Claunia.Localization.Core
{
/// <summary>
/// Contains the plural forms of a string
/// </summary>
public class Plural
{
int items;
internal EventHandler Modified;
string text;
/// <summary>
/// Minimum number (inclusive) of items named to use this plural form
/// </summary>
public int Items
{
get => items;
set
{
items = value;
Modified?.Invoke(this, EventArgs.Empty);
}
}
/// <summary>
/// Plural form of the string
/// </summary>
public string Text
{
get => text;
set
{
text = value;
Modified?.Invoke(this, EventArgs.Empty);
}
}
}
}