Geta.EPi.Extensions : API Documentation

Type CategoryListExtensions

Namespace Geta.EPi.Extensions

Public static methods

bool Contains(this CategoryList categoryList, string name)

Returns a value indicating whether the specified category by name occurs within this CategoryList.
Parameters
CategoryList categoryList
CategoryList with categories.
string name
Category name to seek.
Returns
bool
true if category exists in CategoryList otherwise false.

IEnumerable<string> GetCategoryNames(this CategoryList categoryList)

Returns names of categories for provided CategoryList.
Parameters
CategoryList categoryList
CategoryList with categories.
Returns
IEnumerable<string>
Enumeration of category names.

string GetCommaSeparatedCategories(this CategoryList categoryList, bool requireAvailable, bool requireSelectable)

Builds a comma separated string of categories using LocalizedDescription as name.
Parameters
CategoryList categoryList
CategoryList with categories.
bool requireAvailable
Flag to filter by Available.
bool requireSelectable
Flag to filter by Selectable.
Returns
string
A comma separated string of categories using LocalizedDescription as name.

IEnumerable<Category> GetFullCategories(this CategoryList categoryList)

Returns enumeration of Category for provided CategoryList.
Parameters
CategoryList categoryList
CategoryList with categories.
Returns
IEnumerable<Category>
Enumeration of Category.