示例#1
0
 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);
 }
示例#2
0
        /// <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;
        }