MustEqual<T>(IEligibilityBuilder<T>, T)
Requires the target declaration to equal a specified value.
Declaration
public static void MustEqual<T>(this IEligibilityBuilder<T> eligibilityBuilder, T other) where T : class, IEquatable<T>Parameters
| Type | Name | Description |
|---|---|---|
| IEligibilityBuilder<T> | eligibilityBuilder | The eligibility builder. |
| T | other | The value that the declaration must equal. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of declaration being validated. |
MustEqual(IEligibilityBuilder<IType>, Type)
Requires the target type to equal a specified type (specified as a reflection Type).
Declaration
public static void MustEqual(this IEligibilityBuilder<IType> eligibilityBuilder, Type otherType)Parameters
| Type | Name | Description |
|---|---|---|
| IEligibilityBuilder<IType> | eligibilityBuilder | The eligibility builder for a type. |
| Type | otherType | The type that the validated type must equal. |
MustEqual(IEligibilityBuilder<IType>, SpecialType)
Requires the target type to equal a specified special type.
Declaration
public static void MustEqual(this IEligibilityBuilder<IType> eligibilityBuilder, SpecialType otherType)Parameters
| Type | Name | Description |
|---|---|---|
| IEligibilityBuilder<IType> | eligibilityBuilder | The eligibility builder for a type. |
| SpecialType | otherType | The special type that the validated type must equal. |