Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

EnumerableExtensions

API reference for EnumerableExtensions in Vendr, the eCommerce solution for Umbraco v8+

EnumerableExtensions

Extensions for enumerable sources

public static class EnumerableExtensions

Namespace

Methods

Diff<T> (1 of 2)

public static EnumerableDiff<T> Diff<T>(this IEnumerable<T> current, IEnumerable<T> previous)

Diff<T> (2 of 2)

public static EnumerableDiff<T> Diff<T>(this IEnumerable<T> current, IEnumerable<T> previous, 
    Func<T, object> idAccessor, bool deep = false)

Diff<TKey,TValue>

public static DictionaryDiff<TKey, TValue> Diff<TKey, TValue>(
    this IDictionary<TKey, TValue> current, IDictionary<TKey, TValue> previous, bool deep = false)

Extract<T>

public static T Extract<T>(this List<T> list, Predicate<T> match)

Sum (1 of 4)

public static Price Sum(this IEnumerable<AppliedDiscount> discounts, Guid currencyId)

Sum (2 of 4)

public static Amount Sum(this IEnumerable<AppliedGiftCard> giftCards, Guid currencyId)

Sum (3 of 4)

public static Amount Sum(this IEnumerable<Amount> amounts, Guid currencyId)

Sum (4 of 4)

public static Price Sum(this IEnumerable<Price> prices, Guid currencyId)

Edit this page on GitHub

Site + logo design © 2025 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.