예제 #1
0
 protected override void LoadChildren()
 {
     if (AnalyzedEventAccessorsTreeNode.CanShow(analyzedEvent))
     {
         this.Children.Add(new AnalyzedEventAccessorsTreeNode(analyzedEvent));
     }
     if (AnalyzedEventOverridesTreeNode.CanShowAnalyzer(analyzedEvent))
     {
         this.Children.Add(new AnalyzedEventOverridesTreeNode(analyzedEvent));
     }
 }
예제 #2
0
        public static bool CanShow(MemberReference member)
        {
            var property = member as EventDefinition;

            if (property == null)
            {
                return(false);
            }

            return(AnalyzedEventAccessorsTreeNode.CanShow(property) ||
                   AnalyzedEventOverridesTreeNode.CanShowAnalyzer(property));
        }