Пример #1
0
 protected override void LoadChildren()
 {
     if (AnalyzedPropertyAccessorsTreeNode.CanShow(analyzedProperty))
     {
         this.Children.Add(new AnalyzedPropertyAccessorsTreeNode(analyzedProperty));
     }
     if (AnalyzedPropertyOverridesTreeNode.CanShow(analyzedProperty))
     {
         this.Children.Add(new AnalyzedPropertyOverridesTreeNode(analyzedProperty));
     }
     if (AnalyzedInterfacePropertyImplementedByTreeNode.CanShow(analyzedProperty))
     {
         this.Children.Add(new AnalyzedInterfacePropertyImplementedByTreeNode(analyzedProperty));
     }
 }
Пример #2
0
        protected override void LoadChildren()
        {
            if (analyzedProperty.GetMethod != null)
            {
                this.Children.Add(new AnalyzedPropertyAccessorTreeNode(analyzedProperty.GetMethod, "get"));
            }
            if (analyzedProperty.SetMethod != null)
            {
                this.Children.Add(new AnalyzedPropertyAccessorTreeNode(analyzedProperty.SetMethod, "set"));
            }
            foreach (var accessor in analyzedProperty.OtherMethods)
            {
                this.Children.Add(new AnalyzedPropertyAccessorTreeNode(accessor, null));
            }

            if (AnalyzedPropertyOverridesTreeNode.CanShow(analyzedProperty))
            {
                this.Children.Add(new AnalyzedPropertyOverridesTreeNode(analyzedProperty));
            }
            if (AnalyzedInterfacePropertyImplementedByTreeNode.CanShow(analyzedProperty))
            {
                this.Children.Add(new AnalyzedInterfacePropertyImplementedByTreeNode(analyzedProperty));
            }
        }