C# 클래스 PhotoSharingApp.Universal.Models.CategoryMatchFinder

Helper class for finding matches of category names.
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing 1 사용 예제들

공개 메소드들

메소드 설명
GetMatchingCategories ( string categoryName, IEnumerable categories ) : IEnumerable

Determines which categories are matching the given category name.

IsCategoryPartOfList ( string categoryName, IEnumerable categories ) : bool

Determines if the given category is part of the given list.

SearchCategories ( string categoryName, IEnumerable categories ) : IEnumerable

Searches for a category name within a set of given categories.

ValidateCategoryAcceptanceCriteria ( string categoryName, IEnumerable categories ) : void

Determines if the given category is part of the give list.

메소드 상세

GetMatchingCategories() 공개 메소드

Determines which categories are matching the given category name.
public GetMatchingCategories ( string categoryName, IEnumerable categories ) : IEnumerable
categoryName string The category name to match.
categories IEnumerable The list of categories.
리턴 IEnumerable

IsCategoryPartOfList() 공개 메소드

Determines if the given category is part of the given list.
public IsCategoryPartOfList ( string categoryName, IEnumerable categories ) : bool
categoryName string The category name to match.
categories IEnumerable The list that is matched against.
리턴 bool

SearchCategories() 공개 메소드

Searches for a category name within a set of given categories.
public SearchCategories ( string categoryName, IEnumerable categories ) : IEnumerable
categoryName string The category name to search for.
categories IEnumerable The list of categories.
리턴 IEnumerable

ValidateCategoryAcceptanceCriteria() 공개 메소드

Determines if the given category is part of the give list.
/// Thrown when the given category /// is part of the list. ///
public ValidateCategoryAcceptanceCriteria ( string categoryName, IEnumerable categories ) : void
categoryName string The category name to match.
categories IEnumerable The list that is matched against.
리턴 void