/// <summary> /// Load a GenDate. /// </summary> internal static GenDate LoadGenDate(XElement reader) { if (reader == null) { throw new ArgumentNullException("reader"); } var genDateStr = reader.Attribute("val").Value; return(GenDate.LoadFromString(genDateStr)); }