Class IEnumerableExtensions
Extensions methods for System.Collections.Generic.IEnumerable<T> interface.
public static class IEnumerableExtensions
- Inheritance
-
objectIEnumerableExtensions
Methods
GetDisplayedComponents(IEnumerable<FormComponent>, ContactInfo, BizFormInfo, BizFormItem, IFormComponentVisibilityEvaluator)
Returns filtered components which will be displayed in form based on given parameters.
public static IEnumerable<FormComponent> GetDisplayedComponents(this IEnumerable<FormComponent> components, ContactInfo contact, BizFormInfo formInfo, BizFormItem formItem, IFormComponentVisibilityEvaluator visibilityEvaluator)
Parameters
components
IEnumerable<FormComponent>Original collection of components.
contact
ContactInfoContact for which the filter is performed, can be null.
formInfo
BizFormInfoForm representation.
formItem
BizFormItemExisting form item, can be null.
visibilityEvaluator
IFormComponentVisibilityEvaluatorForm component visibility evaluator.
Returns
- IEnumerable<FormComponent>
Filtered components.
GetVisibleComponents(IEnumerable<FormComponent>, IFormComponentVisibilityEvaluator)
Returns only components whose visibility condition evaluation results indicate that they should be displayed.
public static IEnumerable<FormComponent> GetVisibleComponents(this IEnumerable<FormComponent> components, IFormComponentVisibilityEvaluator visibilityEvaluator)
Parameters
components
IEnumerable<FormComponent>Components collection.
visibilityEvaluator
IFormComponentVisibilityEvaluatorVisibility condition evaluator.
Returns
- IEnumerable<FormComponent>