Search Results for

    Show / Hide Table of Contents

    Interface IHasChildren<T>

    Indicates this item has children that are all typed to be of the same type

    Inherited Members
    IHasChildren.AddChild(IHasChildren)
    IHasChildren.DeleteChild(IHasChildren)
    IHasChildren.ClearChildren()
    Namespace: LemonEdge.Utils
    Assembly: Utils.dll
    Syntax
    public interface IHasChildren<T> : IHasChildren where T : IHasChildren<T>
    Type Parameters
    Name Description
    T

    The item type that implements IHasChildren and that all child items are of

    Properties

    Children

    List of Children contained within this item

    Declaration
    IEnumerable<T> Children { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<T>

    Parent

    Holds a link to the parent item (if there is one) that this item is a child of

    Declaration
    T Parent { get; }
    Property Value
    Type Description
    T

    Methods

    AddChild(T)

    Adds a child item to the collection of Children in this item

    Declaration
    void AddChild(T item)
    Parameters
    Type Name Description
    T item

    The item to add to this items Children. It can not already have another Parent, and this method will set its Parent to this item itself

    DeleteChild(T)

    Removes a child item from the collection of Children in this item

    Declaration
    void DeleteChild(T item)
    Parameters
    Type Name Description
    T item

    The item to remove from this items Children

    Extension Methods

    HasChildrenExtensions.HasChildren(IHasChildren)
    HasChildrenExtensions.GetAllChildren(IHasChildren)
    HasChildrenExtensions.GetRootParent(IHasChildren)
    HasChildrenExtensions.GetLeafChildNodesOnly(IHasChildren)
    HasChildrenExtensions.GetAllChildren<T>(IHasChildren<T>)
    HasChildrenExtensions.GetRootParent<T>(T)
    HasChildrenExtensions.GetLeafChildNodesOnly<T>(T)
    HasChildrenExtensions.ContainsMatchingNode<T>(T, Func<T, Boolean>)
    HasChildrenExtensions.GetMatchingNode<T>(T, Func<T, Boolean>)
    HasChildrenExtensions.MaxTreeDepth(IHasChildren)
    HasChildrenExtensions.GetRootToNode<T>(T)
    HasChildrenExtensions.GetPath<T>(T, String, Func<T, String>)
    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)

    See Also

    IHasChildren
    BaseHasChildren<T>
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.