﻿using System;
using System.Xml.Serialization;

namespace DotNEET.Xml
{
    /// <summary>
    /// Serializable class used to associate a field name with a serialized value
    /// </summary>
    [Serializable]
    public class ModifyField
    {
        /// <summary>
        /// The field name (used by reflection)
        /// </summary>
        [XmlElement("FieldName")]
        public string FieldName;

        /// <summary>
        /// Serialized value to apply as a diff, if the attribute has a ComplexTypeAttribute, given
        /// serialization and deserialization methods are used
        /// </summary>
        [XmlElement("FieldValue")]
        public string FieldValue;
    }
}