Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Services.Checkout Namespace / BasketService Class / FindNextIndexForCombine Method
List of basket items.
The index of the current item to match to.
In This Topic
    FindNextIndexForCombine Method
    In This Topic
    Returns the next available index for an item that can be combined with the current
    Syntax
    protected int FindNextIndexForCombine( 
       IList<BasketItem> items,
       int currentIndex
    )

    Parameters

    items
    List of basket items.
    currentIndex
    The index of the current item to match to.

    Return Value

    Index of the next item that can combine with the current, or -1 if not found.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also