/// <summary> /// Inherited code: Requires comment. /// </summary> /// <param name="time">Inherited code: Requires comment 1.</param> /// <param name="years">Inherited code: Requires comment 2.</param> /// <returns>Inherited code: Requires comment 3.</returns> public static DateTime?AddYears(DateTime time, int years) { System.Globalization.Calendar cal = new CultureInfo("en-US").Calendar; try { return(cal.AddYears(time, years)); } catch (ArgumentException) { return(null); } }