Show / Hide Table of Contents

Class ValidationManifestFromModelConverter

A service which converts instances of Value into instances of ValidationManifest.

Inheritance
System.Object
ValidationManifestFromModelConverter
Implements
IGetsValidationManifestFromModel
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.ManifestModel
Assembly: CSF.Validation.dll
Syntax
public class ValidationManifestFromModelConverter : IGetsValidationManifestFromModel

Constructors

| Improve this Doc View Source

ValidationManifestFromModelConverter(IConvertsModelValuesToManifestValues, IConvertsModelRulesToManifestRules)

Initialises an instance of ValidationManifestFromModelConverter.

Declaration
public ValidationManifestFromModelConverter(IConvertsModelValuesToManifestValues valueConverter, IConvertsModelRulesToManifestRules ruleConverter)
Parameters
Type Name Description
IConvertsModelValuesToManifestValues valueConverter

A conversion service for model values to manifest values.

IConvertsModelRulesToManifestRules ruleConverter

A conversion service for model rules to manifest rules.

Methods

| Improve this Doc View Source

GetValidationManifest(Value, Type)

Gets a validation manifest for validating a specified type, from the specified simple validation model.

Declaration
public ValidationManifest GetValidationManifest(Value rootValue, Type validatedType)
Parameters
Type Name Description
Value rootValue

The Value that represents the primary object to be validated.

System.Type validatedType

The type of the primary object to be validated.

Returns
Type Description
ValidationManifest

A validation manifest.

Implements

IGetsValidationManifestFromModel
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX