Пример #1
0
    // Token: 0x0600058A RID: 1418 RVA: 0x000271C8 File Offset: 0x000253C8
    private static void smethod_14(IList ilist_0, Array array_0, int[] int_0)
    {
        int num = int_0.Length;

        if (num == array_0.Rank)
        {
            array_0.SetValue(Class20.smethod_15(ilist_0, int_0), int_0);
            return;
        }
        int length = array_0.GetLength(num);

        if (((IList)Class20.smethod_15(ilist_0, int_0)).Count != length)
        {
            throw new Exception("Cannot deserialize non-cubical array as multidimensional array.");
        }
        int[] array = new int[num + 1];
        for (int i = 0; i < num; i++)
        {
            array[i] = int_0[i];
        }
        for (int j = 0; j < array_0.GetLength(num); j++)
        {
            array[num] = j;
            Class20.smethod_14(ilist_0, array_0, array);
        }
    }
Пример #2
0
    // Token: 0x0600058C RID: 1420 RVA: 0x00027298 File Offset: 0x00025498
    public static Array smethod_16(IList ilist_0, Type type_0, int int_0)
    {
        IList <int> list = Class20.smethod_13(ilist_0, int_0);

        while (list.Count < int_0)
        {
            list.Add(0);
        }
        Array array = Array.CreateInstance(type_0, list.ToArray <int>());

        Class20.smethod_14(ilist_0, array, Class20.smethod_17 <int>());
        return(array);
    }