コード例 #1
0
        private Dictionary <string, string> GetRenamedNamespacesMap(ModuleDefinition module, ILanguage langugage)
        {
            V_0 = new Dictionary <string, string>();
            if (!this.renameInvalidMembers)
            {
                return(V_0);
            }
            V_1 = new HashSet <string>();
            V_2 = module.get_Types().GetEnumerator();
            try
            {
Label0:
                while (V_2.MoveNext())
                {
                    V_3 = V_2.get_Current().GetNamespace();
                    if (!String.op_Equality(V_3, String.Empty))
                    {
                        if (V_1.Contains(V_3))
                        {
                            continue;
                        }
                        dummyVar1          = V_1.Add(V_3);
                        stackVariable23    = new Char[1];
                        stackVariable23[0] = '.';
                        V_4 = V_3.Split(stackVariable23);
                        V_5 = V_4;
                        V_6 = 0;
                        while (V_6 < (int)V_5.Length)
                        {
                            if (langugage.IsValidIdentifier(V_5[V_6]))
                            {
                                V_6 = V_6 + 1;
                            }
                            else
                            {
                                V_0.Add(V_3, this.EscapeNamespace(V_4, langugage));
                                goto Label0;
                            }
                        }
                    }
                    else
                    {
                        dummyVar0 = V_1.Add(V_3);
                    }
                }
            }
            finally
            {
                V_2.Dispose();
            }
            return(V_0);
        }