Beispiel #1
0
 public void WriteModuleAttributes(ModuleDefinition module, ICollection <string> attributesToIgnore = null)
 {
     V_0 = new List <CustomAttribute>();
     V_1 = module.get_CustomAttributes().GetEnumerator();
     try
     {
         while (V_1.MoveNext())
         {
             V_2 = V_1.get_Current();
             V_2.Resolve();
             V_0.Add(V_2);
         }
     }
     finally
     {
         V_1.Dispose();
     }
     V_0.Sort(new Comparison <CustomAttribute>(this.u003cWriteModuleAttributesu003eb__45_0));
     V_3 = V_0.GetEnumerator();
     try
     {
         while (V_3.MoveNext())
         {
             V_4 = V_3.get_Current();
             if (attributesToIgnore != null && attributesToIgnore.Contains(V_4.get_AttributeType().get_FullName()))
             {
                 continue;
             }
             this.WriteModuleAttribute(V_4);
         }
     }
     finally
     {
         ((IDisposable)V_3).Dispose();
     }
     return;
 }