Beispiel #1
0
        public static DigitItems FromArray(string[] arr)
        {
            if (arr == null)
            {
                return(null);
            }

            var r = new DigitItems();

            if (arr.Length > 0)
            {
                r.Single = arr[0];
            }

            if (arr.Length > 1)
            {
                r.Singular = arr[1];
            }

            if (arr.Length > 2)
            {
                r.Plural = arr[2];
            }

            return(r);
        }
Beispiel #2
0
 public static string DeclineAny(int n, DigitItems s)
 {
     return(DeclineAny(n, s.ToArray()));
 }