コード例 #1
0
 public override object VisitEventDeclaration(EventDeclaration eventDeclaration)
 {
     if (!copyAllMembers)
     {
         eventDeclaration.Remove();
     }
     return(base.VisitEventDeclaration(eventDeclaration));
 }
コード例 #2
0
 public override void VisitEventDeclaration(EventDeclaration eventDeclaration)
 {
     if (eventDeclaration.IsPublic())
     {
         base.VisitEventDeclaration(eventDeclaration);
     }
     else
     {
         eventDeclaration.Remove();
     }
 }
コード例 #3
0
 public override void VisitEventDeclaration(EventDeclaration d)
 {
     if (d.Modifiers.HasFlag(Modifiers.Private) || d.Modifiers.HasFlag(Modifiers.Internal) ||
         d.Modifiers.HasFlag(Modifiers.Override))
     {
         d.Remove();
     }
     else
     {
         RemoveAttributes(d.Attributes);
         base.VisitEventDeclaration(d);
     }
 }