/// <summary> /// Construct a rule to bind xml attribute. /// </summary> /// <param name="_identifier">The xml attribute name.</param> /// <param name="_fieldName">The name of field in object.</param> /// <param name="_transformer">The transformer to apply.</param> public XmlAttribute(string _identifier, string _fieldName, TransformerInterface _transformer) { this.m_identifier = _identifier; this.m_fieldName = _fieldName; this.m_transformer = _transformer; }
/// <summary> /// Create a content binder to bind data turn with transformer into the field name. /// </summary> /// <param name="_fieldName">The name of the field to save data.</param> /// <param name="_transformer">The transformer to use to turn data into other format.</param> public ContentBinder(string _fieldName, TransformerInterface _transformer) : base(_fieldName) { m_transformer = _transformer; }