/// <summary> /// /// </summary> /// <param name="attr"></param> public XmlObjectMappingItem(XmlObjectMappingAttribute attr) { if (attr != null) { this.nodeName = attr.NodeName; this.nodeMappingType = attr.MappingType; } }
/// <summary> /// /// </summary> /// <param name="nodeName"></param> /// <param name="mappingType"></param> public XmlObjectMappingAttribute(string nodeName, XmlNodeMappingType mappingType) { this.nodeName = nodeName; this.nodeMappingType = mappingType; }
/// <summary> /// 自定义节点名与映射方式 /// </summary> /// <param name="nodeName">节点名</param> /// <param name="mappingType">映射方式</param> public XmlObjectMappingAttribute(string nodeName, XmlNodeMappingType mappingType) { this.nodeName = nodeName; this.nodeMappingType = mappingType; }