コード例 #1
0
 public void PrepareTree()
 {
     if (!(Value is Exception || Value is System.Collections.IList ||
           Value == null ||
           Value.GetType().IsSimpleType()))
     {
         GetSubMembers();
     }
     if (ChildPI?.Count() > 0 || (Value is System.Collections.IList list && list.Count > 0))
     {
         // add dummy child
         Children = new List <PropertyEntryVM>()
         {
             new DummyPropertyItem()
         };
     }
 }
コード例 #2
0
 public void PrepareTree()
 {
     if (!(Value is Exception || Value is System.Collections.IList ||
           Value == null ||
           Value.GetType().IsSimpleType()))
     {
         GetSubMembers();
     }
     if (ChildPI?.Count() > 0 || (Value is System.Collections.IList list && list.Count > 0))
     {
         HasChildren = true;
         if (Value is System.Collections.IList list2)
         {
             FullType = FullType.Replace("[]", "") + "[" + list2.Count + "]";
         }
     }
 }