Interface IValidationRuleConfigurationsXmlSerializer
XML serializer for collection of ValidationRuleConfigurations.
public interface IValidationRuleConfigurationsXmlSerializer
- Extension Methods
Methods
Deserialize(string)
Deserializes a collection of validation rule configurations from an XML string.
List<ValidationRuleConfiguration> Deserialize(string validationRuleConfigurationsXml)
Parameters
validationRuleConfigurationsXml
stringXML representation of the rule configurations to be deserialized.
Returns
- List<ValidationRuleConfiguration>
Returns a collection of validation rule configurations.
Exceptions
- ArgumentException
Thrown when
validationRuleConfigurationsXml
is null or an empty string.
Serialize(IEnumerable<ValidationRuleConfiguration>)
Serializes a collection of validation rule configurations to an XML string.
string Serialize(IEnumerable<ValidationRuleConfiguration> validationRuleConfigurations)
Parameters
validationRuleConfigurations
IEnumerable<ValidationRuleConfiguration>Validation rule configurations to be serialized.
Returns
- string
Returns an XML representation of the rules.
Exceptions
- ArgumentNullException
Thrown when
validationRuleConfigurations
is null.