Class ModelValueToManifestValueConverter
A service which converts ModelToManifestConversionContext instances (containing a Value) into a hierarchy of ManifestItem, contained within a ModelToManifestValueConversionResult.
Inheritance
System.Object
    ModelValueToManifestValueConverter
  Implements
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 ModelValueToManifestValueConverter : IConvertsModelValuesToManifestValuesConstructors
| Improve this Doc View SourceModelValueToManifestValueConverter(IGetsAccessorFunction, IGetsValidatedType, IGetsManifestItemFromModelToManifestConversionContext)
Initialises an instance of ModelValueToManifestValueConverter.
Declaration
public ModelValueToManifestValueConverter(IGetsAccessorFunction accessorFactory, IGetsValidatedType validatedTypeProvider, IGetsManifestItemFromModelToManifestConversionContext contextToItemConverter)Parameters
| Type | Name | Description | 
|---|---|---|
| IGetsAccessorFunction | accessorFactory | A factory for accessor functions. | 
| IGetsValidatedType | validatedTypeProvider | A service that gets the validated type. | 
| IGetsManifestItemFromModelToManifestConversionContext | contextToItemConverter | A converter service for model conversion contexts. | 
Methods
| Improve this Doc View SourceConvertAllValues(ModelToManifestConversionContext)
Converts all of the hierarchy of Value instances within the specified context into an equivalent hierarchy of ManifestItem, which are returned as a result object.
Declaration
public ModelToManifestValueConversionResult ConvertAllValues(ModelToManifestConversionContext context)Parameters
| Type | Name | Description | 
|---|---|---|
| ModelToManifestConversionContext | context | A conversion context. | 
Returns
| Type | Description | 
|---|---|
| ModelToManifestValueConversionResult | A result object containing the converted manifest values. | 
Exceptions
| Type | Condition | 
|---|---|
| ValidatorBuildingException | If the input value(s) are not valid for creating a validation manifest. | 
| System.ArgumentNullException | If the  |