コード例 #1
0
 public IList <PermissionItem> GetPublicPermissions()
 {
     V_0 = new Dictionary <string, PermissionItem>();
     V_1 = this.GetModules().GetEnumerator();
     try
     {
         while (V_1.MoveNext())
         {
             V_2             = V_1.get_Current();
             stackVariable10 = this.GetPermissions(V_2);
             stackVariable11 = PermissionManager.u003cu003ec.u003cu003e9__6_1;
             if (stackVariable11 == null)
             {
                 dummyVar0       = stackVariable11;
                 stackVariable11 = new Func <PermissionItem, bool>(PermissionManager.u003cu003ec.u003cu003e9.u003cGetPublicPermissionsu003eb__6_1);
                 PermissionManager.u003cu003ec.u003cu003e9__6_1 = stackVariable11;
             }
             V_3 = stackVariable10.Where <PermissionItem>(stackVariable11).GetEnumerator();
             try
             {
                 while (V_3.MoveNext())
                 {
                     V_4 = V_3.get_Current();
                     V_0.set_Item(V_4.get_Name(), V_4);
                 }
             }
             finally
             {
                 if (V_3 != null)
                 {
                     V_3.Dispose();
                 }
             }
         }
     }
     finally
     {
         if (V_1 != null)
         {
             V_1.Dispose();
         }
     }
     stackVariable25 = V_0.get_Values();
     stackVariable26 = PermissionManager.u003cu003ec.u003cu003e9__6_0;
     if (stackVariable26 == null)
     {
         dummyVar1       = stackVariable26;
         stackVariable26 = new Func <PermissionItem, string>(PermissionManager.u003cu003ec.u003cu003e9.u003cGetPublicPermissionsu003eb__6_0);
         PermissionManager.u003cu003ec.u003cu003e9__6_0 = stackVariable26;
     }
     return(stackVariable25.OrderBy <PermissionItem, string>(stackVariable26).ToList <PermissionItem>());
 }
コード例 #2
0
 public IList <PermissionItem> GetPermissions()
 {
     V_0 = new Dictionary <string, PermissionItem>();
     V_1 = this.GetModules().GetEnumerator();
     try
     {
         while (V_1.MoveNext())
         {
             V_2 = V_1.get_Current();
             V_3 = this.GetPermissions(V_2).GetEnumerator();
             try
             {
                 while (V_3.MoveNext())
                 {
                     V_4 = V_3.get_Current();
                     V_0.set_Item(V_4.get_Name(), V_4);
                 }
             }
             finally
             {
                 if (V_3 != null)
                 {
                     V_3.Dispose();
                 }
             }
         }
     }
     finally
     {
         if (V_1 != null)
         {
             V_1.Dispose();
         }
     }
     stackVariable21 = V_0.get_Values();
     stackVariable22 = PermissionManager.u003cu003ec.u003cu003e9__5_0;
     if (stackVariable22 == null)
     {
         dummyVar0       = stackVariable22;
         stackVariable22 = new Func <PermissionItem, string>(PermissionManager.u003cu003ec.u003cu003e9.u003cGetPermissionsu003eb__5_0);
         PermissionManager.u003cu003ec.u003cu003e9__5_0 = stackVariable22;
     }
     return(stackVariable21.OrderBy <PermissionItem, string>(stackVariable22).ToList <PermissionItem>());
 }
コード例 #3
0
 public static string GetGenericName(IGenericDefinition genericDefinition, string leftBracket, string rightBracket, ILanguage language)
 {
     V_0 = false;
     if (genericDefinition as MethodDefinition != null)
     {
         V_0 = ((MethodDefinition)genericDefinition).get_HasOverrides();
     }
     V_1 = GenericHelper.GetNonGenericName(genericDefinition.get_Name());
     if (!V_0)
     {
         if (genericDefinition as MethodDefinition == null)
         {
             stackVariable70 = false;
         }
         else
         {
             stackVariable70 = ((MethodDefinition)genericDefinition).get_IsConstructor();
         }
         if (!stackVariable70)
         {
             V_1 = GenericHelper.ReplaceInvalidCharactersName(language, V_1);
         }
     }
     if (genericDefinition.get_HasGenericParameters())
     {
         V_2 = 0;
         if (genericDefinition as TypeDefinition != null)
         {
             V_3 = (genericDefinition as TypeDefinition).get_DeclaringType();
             if (V_3 != null && V_3.get_HasGenericParameters())
             {
                 V_2 = V_3.get_GenericParameters().get_Count();
             }
         }
         if (V_2 < genericDefinition.get_GenericParameters().get_Count())
         {
             V_1 = String.Concat(V_1, leftBracket);
             while (V_2 < genericDefinition.get_GenericParameters().get_Count())
             {
                 V_4 = genericDefinition.get_GenericParameters().get_Item(V_2);
                 if (V_4.get_IsCovariant())
                 {
                     V_1 = String.Concat(V_1, "out ");
                 }
                 if (V_4.get_IsContravariant())
                 {
                     V_1 = String.Concat(V_1, "in ");
                 }
                 V_1 = String.Concat(V_1, GenericHelper.ReplaceInvalidCharactersName(language, V_4.get_Name()));
                 if (V_2 != genericDefinition.get_GenericParameters().get_Count() - 1)
                 {
                     V_1 = String.Concat(V_1, ", ");
                 }
                 V_2 = V_2 + 1;
             }
             V_1 = String.Concat(V_1, rightBracket);
         }
     }
     return(V_1);
 }