Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Section"/> class.
 /// </summary>
 /// <param name="original">The original section to copy from.</param>
 private Section(Section original)
     : this(original.Name, original.SectionType, original.Step, original.Properties)
 {
 }
Esempio n. 2
0
 private void WriteSection(Section section, IEnumerable<PropertyItem> propertyLines)
 {
     writer.WriteLine("\t{0}({1}) = {2}", section.SectionType, section.Name, section.Step);
     foreach (PropertyItem propertyLine in propertyLines)
     {
         writer.WriteLine("\t\t{0} = {1}", propertyLine.Name, propertyLine.Value);
     }
     writer.WriteLine("\tEnd{0}", section.SectionType);
 }