/// <summary> /// Loading contentm from Format and convert it /// to Nda model using dynamic object to represent it /// </summary> private void LoadContentToFileDynamic() { var fullContent = FileFormat.GetContent(); var enumerable = fullContent as IList <IEnumerable <string> > ?? fullContent.ToList(); Titles = enumerable.First().ToList(); foreach (var singleNdaEntry in enumerable.Skip(1)) { dynamic ndaEntry = new DynamicEntry(); var index = 0; foreach (var entryPart in singleNdaEntry) { ndaEntry.SetProperty(Titles[index].Replace(" ", ""), entryPart); index++; } DynamicContent.Add(ndaEntry); } }