/// <summary> Read from an existing metadata file and returns a new object</summary> /// <param name="fileName">Name of the file</param> /// <remarks>The generic reader attempts to determine which form of metadata the file /// is currently using, and selects the appropriate reader</remarks> /// <returns>Built SobekCM_Item object</returns> public static SobekCM_Item Read_File(string fileName) { SobekCM_Item returnVal = new SobekCM_Item(); Generic_Reader reader = new Generic_Reader(); reader.Read(fileName, returnVal); return returnVal; }
/// <summary> Read from an existing metadata file into the current object</summary> /// <param name="fileName">Name of the file</param> /// <remarks>The generic reader attempts to determine which form of metadata the file /// is currently using, and selects the appropriate reader</remarks> public void Read(string fileName) { Generic_Reader reader = new Generic_Reader(); reader.Read(fileName, this); }