// Token: 0x06000535 RID: 1333 RVA: 0x00052FFC File Offset: 0x000511FC public static string[] INIGetAllItemKeys(string iniFile, string section) { string[] result = new string[0]; if (string.IsNullOrEmpty(section)) { throw new ArgumentException("必须指定节点名称", "section"); } char[] array = new char[10240]; uint privateProfileString = INIOperationClass.GetPrivateProfileString(section, null, null, array, 10240U, iniFile); if (privateProfileString != 0U) { string text = new string(array); char[] separator = new char[1]; result = text.Split(separator, StringSplitOptions.RemoveEmptyEntries); } return(result); }
// Token: 0x06000536 RID: 1334 RVA: 0x00053060 File Offset: 0x00051260 public static string INIGetStringValue(string iniFile, string section, string key, string defaultValue) { string result = defaultValue; if (string.IsNullOrEmpty(section)) { throw new ArgumentException("必须指定节点名称", "section"); } if (string.IsNullOrEmpty(key)) { throw new ArgumentException("必须指定键名称(key)", "key"); } StringBuilder stringBuilder = new StringBuilder(10240); uint privateProfileString = INIOperationClass.GetPrivateProfileString(section, key, defaultValue, stringBuilder, 10240U, iniFile); if (privateProfileString != 0U) { result = stringBuilder.ToString(); } return(result); }