コード例 #1
0
            public INILine(INIEntryType entryType, string entryText, string entryComment)
            {
                entry   = "";
                key     = "";
                value   = "";
                comment = (entryComment != "" ? "\t\t" + INIComment + " " + entryComment : "");
                switch (entryType)
                {
                case INIEntryType.Comment:
                    comment = INIComment + " " + entryText + comment;
                    break;

                case INIEntryType.Section:
                    entry      = "[" + entryText + "]";
                    setSection = entryText;
                    break;

                case INIEntryType.Entry:
                    entry = entryText;
                    break;
                }
                section  = curSection;
                modified = true;
            }
コード例 #2
0
ファイル: INIFile.cs プロジェクト: europop/morrgraphext
 public INILine(INIEntryType entryType, string entryText, string entryComment)
 {
     entry = "";
     key = "";
     value = "";
     comment = (entryComment != "" ? "\t\t" + INIComment + " " + entryComment : "");
     switch (entryType) {
         case INIEntryType.Comment:
             comment = INIComment + " " + entryText + comment;
             break;
         case INIEntryType.Section:
             entry = "[" + entryText + "]";
             setSection = entryText;
             break;
         case INIEntryType.Entry:
             entry = entryText;
             break;
     }
     section = curSection;
     modified = true;
 }