EraYear() public method

public EraYear ( int &era, int date ) : int
era int
date int
return int
 public int EraYear(out int era, int date)
 {
     foreach (object obj in this._Eras.Values)
     {
         CCEastAsianLunisolarEraHandler.Era era2 = (CCEastAsianLunisolarEraHandler.Era)obj;
         if (era2.Covers(date))
         {
             return(era2.EraYear(out era, date));
         }
     }
     throw new ArgumentOutOfRangeException("date", "Time value was out of era range.");
 }