Esempio n. 1
0
    public static int smethod_10(string string_0, out string[] string_1, out string[] string_2)
    {
        byte[] array = new byte[65535];
        Class6.GetPrivateProfileSection(string_0, array, array.Length, Class6.iniPath);
        string @string = Encoding.Default.GetString(array);
        string text    = @string;

        char[]    separator = new char[1];
        string[]  array2    = text.Split(separator);
        ArrayList arrayList = new ArrayList();

        string[] array3 = array2;
        foreach (string text2 in array3)
        {
            if (text2 != string.Empty)
            {
                arrayList.Add(text2);
            }
        }
        string_1 = new string[arrayList.Count];
        string_2 = new string[arrayList.Count];
        for (int j = 0; j < arrayList.Count; j++)
        {
            string[] array4 = arrayList[j].ToString().Split('=');
            if (array4.Length == 2)
            {
                string_1[j] = array4[0].Trim();
                string_2[j] = array4[1].Trim();
            }
            else if (array4.Length == 1)
            {
                string_1[j] = array4[0].Trim();
                string_2[j] = "";
            }
            else if (array4.Length == 0)
            {
                string_1[j] = "";
                string_2[j] = "";
            }
        }
        return(0);
    }