Exemple #1
0
        private Type PostClient(string res, Assembly pol)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            Type result = null;
            int  num    = res.IndexOf('[');

            if (num >= 0)
            {
                string name = res.Substring(0, num);
                Type   type = pol.GetType(name);
                if (type != null)
                {
                    List <Type> list = new List <Type>();
                    int         num2 = 0;
                    int         num3 = 0;
                    int         num4 = res.Length - 1;
                    for (int i = num + 1; i < num4; i++)
                    {
                        switch (res[i])
                        {
                        case '[':
                            if (num2 == 0)
                            {
                                num3 = i + 1;
                            }
                            num2++;
                            break;

                        case ']':
                            num2--;
                            if (num2 == 0)
                            {
                                GDBD.Workers.TemplateComposerWorker <string, string> first = ResolverErrorFilter.IncludeReader(res.Substring(num3, i - num3));
                                list.Add(ChangeClient(first));
                            }
                            break;
                        }
                    }
                    result = type.MakeGenericType(list.ToArray());
                }
            }
            return(result);
        }