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;
/// Minimum number (inclusive) of items named to use this plural form
public int Items
get => items;
set
items = value;
Modified?.Invoke(this, EventArgs.Empty);
}
/// Plural form of the string
public string Text
get => text;
text = value;
public override string ToString() => text;