Exemple #1
0
 public static void Write <T>(this CdsFile <T> file, TextWriter writer) where T : CdsFile <T>, new()
 {
     using (writer)
         foreach (var section in FileSection.Of(file))
         {
             writer.WriteSection(section);
         }
 }
Exemple #2
0
 public static void Read <T>(this CdsFile <T> file, TextReader reader) where T : CdsFile <T>, new()
 {
     using (reader)
         foreach (var section in FileSection.Of(file))
         {
             section.Object = reader.Read(section);
         }
 }