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()
         };
     }
 }
Beispiel #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 + "]";
         }
     }
 }