public override IEnumerable<TreeNodeData> CreateChildren() {
			if (!createChildren)
				yield break;
			if (derivedTypesFinder != null)
				derivedTypesFinder.Cancel();
			derivedTypesFinder = new DerivedTypesFinder(this, type);
		}
Example #2
0
		public override IEnumerable<TreeNodeData> CreateChildren() {
			if (!createChildren)
				yield break;
			if (derivedTypesFinder != null) {
				derivedTypesFinder.Cancel();
				derivedTypesFinder = null;
			}
			var td = TryGetTypeDef();
			if (td != null)
				derivedTypesFinder = new DerivedTypesFinder(this, td);
		}
 public override IEnumerable <TreeNodeData> CreateChildren()
 {
     if (!createChildren)
     {
         yield break;
     }
     if (derivedTypesFinder is not null)
     {
         derivedTypesFinder.Cancel();
     }
     derivedTypesFinder = new DerivedTypesFinder(this, type);
 }
        public override IEnumerable <TreeNodeData> CreateChildren()
        {
            if (!createChildren)
            {
                yield break;
            }
            if (derivedTypesFinder != null)
            {
                derivedTypesFinder.Cancel();
                derivedTypesFinder = null;
            }
            var td = TryGetTypeDef();

            if (td != null)
            {
                derivedTypesFinder = new DerivedTypesFinder(this, td);
            }
        }
 public override void Initialize() =>
 TreeNode.LazyLoading = createChildren = DerivedTypesFinder.QuickCheck(TryGetTypeDef());