Root / Assembly / ARCCore / Class / PK / _Member / ValidatorAndParser

ClassMemberAttribute

ValidatorAndParser

KeyValue
DescriptionValidates and parses a value.

The reason for having a (standard) validator and parser is to ensure consistency with handling of input values throughout your application. This both enhances the security and the user friendliness of your application, and makes it easier to debug because any error conditions are clearly stated and explained.

Originates from either:
1) The EnrichKey-implementation in ITypeDescriber (that is, as tailor made for the actual class) or
2) As a standard validator and parser from a BasePKAttribute (for instance StandardValidatorAndParser offers one for standard types like string, int, long, bool, DateTime, TimeSpan, Type, Uri, and similar).

If not found neither from 1) nor 2), then Initialize will set a dummy value which will throw an exception upon attempted use (the null check below is really irrelevant)
LongDescriptionNote how Initialize modifies the value to take into account Cardinality.

See also Cleaner.
MethodNameValidatorAndParser
MethodSignatureSystem.Func`2[System.String,ARCCore.ParseResult] ValidatorAndParser
ReflectedTypeARCCore.PK

5 items


Generated 2020-10-13 11:11:04.830 UTC