예제 #1
0
 public override IEnumerable <TreeNodeViewModel> VisitNodeAndBuildChildren(PropertyNodeViewModel property, bool expandChildren,
                                                                           CancellationToken cancellation)
 {
     property.ThrowOnNull(nameof(property));
     return(property.PropertyInfo.Attributes.Select(a => new AttributeNodeViewModel(property, a.AttributeData, expandChildren)));
 }
예제 #2
0
 public virtual void VisitNode(PropertyNodeViewModel property) => DefaultVisit(property);
 public virtual IEnumerable <TreeNodeViewModel> VisitNodeAndBuildChildren(PropertyNodeViewModel property, bool expandChildren,
                                                                          CancellationToken cancellation) =>
 Enumerable.Empty <TreeNodeViewModel>();
 public virtual TResult VisitNode(PropertyNodeViewModel property, TInput input) => DefaultVisit(property, input);