Class Criterion<T>
public sealed class Criterion<T> : ICriterion<T>
Type Parameters
T
- Inheritance
-
Criterion<T>
- Implements
-
ICriterion<T>
- Inherited Members
- Extension Methods
Constructors
Criterion(string, IEnumerable<SubcriterionBase<T>>, bool)
public Criterion(string label, IEnumerable<SubcriterionBase<T>> subcriterias, bool appliesByDefault)
Parameters
labelstringsubcriteriasIEnumerable<SubcriterionBase<T>>appliesByDefaultbool
Properties
AppliesByDefault
Applies regardless of changedness if its tab is active; makes the main tab always-active
public bool AppliesByDefault { get; }
Property Value
DefaultSubcriterionName
public string DefaultSubcriterionName { get; }
Property Value
Label
Caption used for this criterion's fields
public string Label { get; }
Property Value
Subcriteria
An ordered series of description-field-spec tuples
public Dictionary<string, SubcriterionBase<T>> Subcriteria { get; }
Property Value
Methods
Create(string, bool, params SubcriterionBase<T>[])
public static Criterion<T> Create(string label, bool appliesByDefault, params SubcriterionBase<T>[] subcriteria)
Parameters
labelstringappliesByDefaultboolsubcriteriaSubcriterionBase<T>[]
Returns
- Criterion<T>
Create(string, params SubcriterionBase<T>[])
public static Criterion<T> Create(string label, params SubcriterionBase<T>[] subcriteria)
Parameters
labelstringsubcriteriaSubcriterionBase<T>[]
Returns
- Criterion<T>
Create<U>(IField<U>, string, Action<U, T>, bool)
public static Criterion<T> Create<U>(IField<U> field, string description, Action<U, T> specify, bool appliesByDefault = false)
Parameters
Returns
- Criterion<T>
Type Parameters
U
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.