public object Read(PropertyInfo propertyInfo, XElement element, ConfigCustomerAttribute attri) { var ele = element.Element(propertyInfo.Name); if (ele == null) { return(null); } return(ele.Value); }
public void Write(PropertyInfo propertyInfo, object value, XElement element, ConfigCustomerAttribute attri) { element.Add(new XElement(propertyInfo.Name, value)); }