public INIEntity(string _name, string packString, int startIndex) { name = _name; if (!string.IsNullOrEmpty(packString)) { for (int i = 0; i < packString.Length; i += 70) { int remain = packString.Length - i; AddPair(new INIPair(startIndex.ToString(), packString.Substring(i, Math.Min(70, remain)), "", "")); startIndex++; } } entitytype = INIEntType.ListType; }
public INIEntity(string _name, string _preComment, string _comment) { name = _name; comment = _comment; preComment = _preComment; if (Constant.EntName.SystemEntity.Contains(_name)) { entitytype = INIEntType.SystemType; } else if (Constant.EntName.DictionaryList.Contains(_name)) { entitytype = INIEntType.ListType; } else if (Constant.EntName.MapList.Contains(_name)) { entitytype = INIEntType.MapType; } else { entitytype = INIEntType.DefaultType; } }