Class ValueContextIsMatchForItem
A specification for validation value contexts that match a specified manifest value and optionally a validated item.
Inheritance
System.Object
ValueContextIsMatchForItem
Implements
CSF.Specifications.ISpecificationExpression<ValueContext>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation
Assembly: CSF.Validation.dll
Syntax
public class ValueContextIsMatchForItem : ISpecificationExpression<ValueContext>
Constructors
| Improve this Doc View SourceValueContextIsMatchForItem(ManifestItem)
Initialises a new instance of ValueContextIsMatchForItem without a validated item instance.
Declaration
public ValueContextIsMatchForItem(ManifestItem value)
Parameters
Type | Name | Description |
---|---|---|
ManifestItem | value | The manifest value which must be matched |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
ValueContextIsMatchForItem(ManifestItem, Object)
Initialises a new instance of ValueContextIsMatchForItem with a validated item instance.
Declaration
public ValueContextIsMatchForItem(ManifestItem value, object item)
Parameters
Type | Name | Description |
---|---|---|
ManifestItem | value | The manifest value which must be matched |
System.Object | item | An optional item (of the type indicated by the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
Methods
| Improve this Doc View SourceGetExpression()
Gets an expression which represents the current specification instance.
Declaration
public Expression<Func<ValueContext, bool>> GetExpression()
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<ValueContext, System.Boolean>> | The specification expression. |
Implements
CSF.Specifications.ISpecificationExpression<T>