Exemplo n.º 1
0
        public override string ToString()
        {
            string result = "[" + SectionName;

            if (!SubSection.IsNullOrEmpty())
            {
                var escSubSection = SubSection.Replace("\"", "\\\"");
                escSubSection = escSubSection.Replace("\\", "\\\\");

                if (!SubSectionCaseSensitive)
                {
                    escSubSection = escSubSection.ToLower();
                }
                result = result + " \"" + escSubSection + "\"";
            }
            result = result + "]";
            return(result);
        }
Exemplo n.º 2
0
        public override string ToString()
        {
            string result = "[" + SectionName;

            if (!SubSection.IsNullOrEmpty())
            {
                if (SubSectionCaseSensitive)
                {
                    result = result + " \"" + SubSection + "\"";
                }
                else
                {
                    result = result + "." + SubSection;
                }
            }
            result = result + "]";
            return(result);
        }