Example #1
0
        static void Validate(int year, Biannum biannum)
        {
            if (year < DateTime.MinValue.Year || year > DateTime.MaxValue.Year)
            {
                throw new SDMXException("Year value is out of range: {0}.", year);
            }

            int q = (int)biannum;

            if (q < 1 || q > 2)
            {
                throw new SDMXException("Biannum value is out of range: {0}.", q);
            }
        }
Example #2
0
 public Biannual(int year, Biannum annum)
 {
     Validate(year, annum);
     _year  = year;
     _annum = annum;
 }