/// <summary> /// Parte a file to object content /// </summary> /// <param name="file"></param> /// <returns></returns> private static FileContent ParseToFileContent(FileInfo file) { string Delimiter = "ç"; FileContent content = new FileContent(); string[] lines = PathUtil.ExtractInformation(file); #region Populate file content based on text file foreach (string line in lines) { //Split line based on rules var keys = line.Split(Delimiter); //Get classification ClassificatorEnum Type = EnumExtensions.FromString <ClassificatorEnum>(keys.FirstOrDefault()); //Populate object Classificate(ref content, Type, keys); } #endregion return(content); }