Class ModelToManifestConversionContext
A model which describes the contextual state required in order to convert a validation model into a validation manifest.
Inheritance
Inherited Members
Namespace: CSF.Validation.ManifestModel
Assembly: CSF.Validation.dll
Syntax
public class ModelToManifestConversionContext
Properties
| Improve this Doc View SourceAccessorFromParent
Gets or sets an optional accessor function which would be used to traverse from the ParentManifestValue to the CurrentValue.
Declaration
public Func<object, object> AccessorFromParent { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Object, System.Object> |
ConversionType
Gets a value that indicates the conversion type.
Declaration
public ModelToManifestConversionType ConversionType { get; set; }
Property Value
Type | Description |
---|---|
ModelToManifestConversionType |
CurrentValue
Gets or sets the current model Value being converted.
Declaration
public Value CurrentValue { get; set; }
Property Value
Type | Description |
---|---|
Value |
MemberName
Gets or sets an optional member name which would be used to traverse from the ParentManifestValue to the CurrentValue.
Declaration
public string MemberName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParentManifestValue
Gets or sets an optional reference to the parent (already-converted) ManifestItem which should be used as the parent of the CurrentValue.
Declaration
public ManifestItem ParentManifestValue { get; set; }
Property Value
Type | Description |
---|---|
ManifestItem |
PolymorphicTypeName
Gets or sets the string name of the polymorphic type. Unused when ConversionType is not PolymorphicType.
Declaration
public string PolymorphicTypeName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ValidatedType
Gets or sets the type of the object which would be validated by the CurrentValue.
Declaration
public Type ValidatedType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |