Exemple #1
0
 /// <summary>
 /// Gets children of an item and returns <see cref="IEnumerable{TItemWrapper}"/> of xWrap strongly typed item wrappers.
 /// Child items which are not inherited from target template are being skipped and not included into result.
 /// </summary>
 /// <param name="item">Item wrapper to get children from</param>
 public virtual IEnumerable <TItemWrapper> WrapChildren <TItemWrapper>(ItemWrapper item)
     where TItemWrapper : ItemWrapper
 {
     return(this.WrapItems <TItemWrapper>(item.OriginalItem.Children));
 }
Exemple #2
0
 /// <summary>
 /// Gets children of an item reccursively and returns <see cref="IEnumerable{TItemWrapper}"/> of xWrap strongly typed item wrappers.
 /// Child items which are not inherited from target template are being skipped and not included into result.
 /// </summary>
 /// <param name="item">Item wrapper to get children from</param>
 public virtual IEnumerable <TItemWrapper> WrapChildrenReccursively <TItemWrapper>(ItemWrapper item)
     where TItemWrapper : ItemWrapper
 {
     return(this.WrapChildrenReccursively <TItemWrapper>(item.OriginalItem));
 }