示例#1
0
        public static IniFile Parse(string text, IniFileMode mode)
        {
            var result = new IniFile(mode);

            result.ParseString(text);
            return(result);
        }
示例#2
0
 public IniFile()
 {
     _iniFileMode = IniFileMode.Normal;
 }
示例#3
0
 public IniFile(IniFileMode mode)
 {
     _iniFileMode = mode;
 }
示例#4
0
 public IniFile([CanBeNull] string filename, IniFileMode mode = IniFileMode.Normal) : base(InnerIniFileModeTrick(filename, mode))
 {
     _trickIniFileMode = null;
     _iniFileMode      = mode;
 }
示例#5
0
 // I feel like I’ve sort of kicked a puppy right now
 private static string InnerIniFileModeTrick(string s, IniFileMode mode)
 {
     _trickIniFileMode = mode;
     return(s);
 }
示例#6
0
 public IniFile(string filename, IniFileMode mode) : base(InnerIniFileModeTrick(filename, mode))
 {
     _trickIniFileMode = null;
     _iniFileMode      = mode;
 }
示例#7
0
 public IniFile(string carDir, string filename, Acd loadedAcd, IniFileMode mode) : base(carDir, InnerIniFileModeTrick(filename, mode), loadedAcd)
 {
     _trickIniFileMode = null;
     _iniFileMode      = mode;
 }