public void Write(ChildrenList_CreateOnlyParentNullableRaw childrenList_CreateOnlyParentNullableRaw)
 {
     if (childrenList_CreateOnlyParentNullableRaw.Key != nextKey)
     {
         throw new Exception($"ChildrenList_CreateOnlyParentNullableRaw's key {childrenList_CreateOnlyParentNullableRaw.Key} should be {nextKey}.");
     }
     nextKey++;
     csvWriter.StartNewLine();
     csvWriter.Write(childrenList_CreateOnlyParentNullableRaw.Text);
     csvWriter.WriteEndOfLine();
 }
 public bool ReadLine([NotNullWhen(true)] out ChildrenList_CreateOnlyParentNullableRaw?childrenList_CreateOnlyParentNullableRaw)
 {
     if (csvReader.IsEndOfFileReached())
     {
         csvReader.Dispose();
         childrenList_CreateOnlyParentNullableRaw = null;
         return(false);
     }
     childrenList_CreateOnlyParentNullableRaw      = new ChildrenList_CreateOnlyParentNullableRaw();
     childrenList_CreateOnlyParentNullableRaw.Key  = nextKey++;
     childrenList_CreateOnlyParentNullableRaw.Text = csvReader.ReadString();
     csvReader.ReadEndOfLine();
     return(true);
 }