Show / Hide Table of Contents

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 Source

ValueContextIsMatchForItem(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 value is null.

| Improve this Doc View Source

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 value) which the value content must match.

Exceptions
Type Condition
System.ArgumentNullException

If value is null.

Methods

| Improve this Doc View Source

GetExpression()

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>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX