FilterExtensions

Extends the Filter with helper methods.

Namespace:
KpokEntityTool.Models
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes
Inherits from:
System.Object

Methods

CountGroupsEndedWith

Counts how many groups ended with the specified predicate.

Signature:
public Int32 CountGroupsEndedWith(filter, predicate)
Returns

How many are there.

Parameters
Name Type Summary
filter Filter Filter.
predicate FilterPredicate A FilterPredicate.

CountGroupsStartedWith

Counts how many groups starts with the specified predicate.

Signature:
public Int32 CountGroupsStartedWith(filter, predicate)
Returns

How many are there.

Parameters
Name Type Summary
filter Filter Filter.
predicate FilterPredicate A FilterPredicate.

IsEndOfGroup

Checks whether the specified predicate is the end point of a group.

Signature:
public Boolean IsEndOfGroup(filter, predicate)
Returns

true if the predicate end a group, otherwise false.

Parameters
Name Type Summary
filter Filter Filter.
predicate FilterPredicate A FilterPredicate.

IsInGroup

Checkes whether the specified predicate belongs to a group.

Signature:
public Boolean IsInGroup(filter, predicate)
Returns

true if the predicate belong to a group, otherwise false.

Parameters
Name Type Summary
filter Filter Filter.
predicate FilterPredicate A FilterPredicate.

IsStartOfGroup

Checks whether the specified predicate is the start point of a group.

Signature:
public Boolean IsStartOfGroup(filter, predicate)
Returns

true if the predicate starts a group, otherwise false.

Parameters
Name Type Summary
filter Filter Filter.
predicate FilterPredicate A FilterPredicate.