Example #1
0
 protected virtual void WriteMemberAttributesInternal(IMemberDefinition member, bool isWinRTImplementation)
 {
     this.securityAttributeToDeclaration = new Dictionary <SecurityAttribute, SecurityDeclaration>();
     V_0 = this.CollectSecurityAttributes(member);
     V_1 = member.get_CustomAttributes().GetEnumerator();
     try
     {
         while (V_1.MoveNext())
         {
             V_2 = V_1.get_Current();
             V_2.Resolve();
             if (isWinRTImplementation && this.IsWinRTActivatableAttribute(V_2))
             {
                 continue;
             }
             V_0.Add(V_2);
         }
     }
     finally
     {
         V_1.Dispose();
     }
     V_0.AddRange(this.WritePropertiesAsAttributes(member));
     this.SortAttributes(V_0);
     this.WriteAttributesInternal(member, V_0, false, false);
     return;
 }