/// <summary>Gets the string representation of the ini assignment style.</summary>
        public static string GetString(this IniAssignmentStyle assignmentStyle)
        {
            switch (assignmentStyle)
            {
            case IniAssignmentStyle.Equals:                 return("=");

            case IniAssignmentStyle.Colon:                  return(":");

            case IniAssignmentStyle.EqualsSpaced:   return(" = ");

            case IniAssignmentStyle.ColonSpaced:    return(" : ");
            }
            return("");
        }
        //-----------------------------------------------------------------------------
        // Constructor
        //-----------------------------------------------------------------------------

        /// <summary>Constructs the ini document.</summary>
        public IniDocument()
        {
            this.assignmentStyle = IniAssignmentStyle.EqualsSpaced;
            this.commentStyle    = IniCommentStyle.SemicolonSpaced;
            this.maxLineLength   = int.MaxValue;
            this.sectionSpacing  = 1;

            this.keepComments = true;

            this.strictFormatting = false;
            this.escapeEnabled    = false;

            this.sections = new Dictionary <string, IniSection>();

            // Add the global section
            Add("");
        }