public PropertyDTO Copy(PropertyDTO property, string value = null) { if (property == null) { throw new ArgumentNullException("property"); } return new PropertyDTO(property.Number, property.Name, property.TemplateReference, value ?? property.Value); }
/// <summary> /// Mapped Node /// </summary> /// <param name="parent">parent</param> /// <param name="property">property</param> /// <param name="mapee">mapee</param> /// <returns></returns> public MappedNode(MappedNode parent, PropertyDTO property, HtmlNode mapee) : this(parent) { if (property == null && mapee == null) { throw new ArgumentNullException(property == null ? "property" : "mapee"); } this.property = property; this.mapee = mapee; }