예제 #1
0
        public static bool CanShow(MemberReference member)
        {
            var property = member as PropertyDefinition;

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

            return(!MainWindow.Instance.CurrentLanguage.ShowMember(property.GetMethod ?? property.SetMethod) ||
                   AnalyzedPropertyOverridesTreeNode.CanShow(property));
        }
예제 #2
0
        public static bool CanShow(MemberReference member)
        {
            var property = member as PropertyDefinition;

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

            return(AnalyzedPropertyAccessorsTreeNode.CanShow(property) ||
                   AnalyzedPropertyOverridesTreeNode.CanShow(property));
        }
예제 #3
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));
     }
 }
예제 #4
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));
            }
        }