コード例 #1
0
		public override IEnumerable<TreeNodeData> CreateChildren() {
			if (!createChildren)
				yield break;
			if (derivedTypesFinder != null)
				derivedTypesFinder.Cancel();
			derivedTypesFinder = new DerivedTypesFinder(this, type);
		}
コード例 #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);
		}
コード例 #3
0
 public override IEnumerable <TreeNodeData> CreateChildren()
 {
     if (!createChildren)
     {
         yield break;
     }
     if (derivedTypesFinder is not null)
     {
         derivedTypesFinder.Cancel();
     }
     derivedTypesFinder = new DerivedTypesFinder(this, type);
 }
コード例 #4
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);
            }
        }
コード例 #5
0
 public override void Initialize() =>
 TreeNode.LazyLoading = createChildren = DerivedTypesFinder.QuickCheck(TryGetTypeDef());