Example #1
0
        public ProductStoreSearchCriteria Clone()
        {
            ProductStoreSearchCriteria result = new ProductStoreSearchCriteria();

            result.CategoryId = this.CategoryId;
            foreach (CustomPropertyValue cpv in this.CustomProperties)
            {
                CustomPropertyValue cp = cpv.Clone();
                result.CustomProperties.Add(cp);
            }
            result.Keyword        = this.Keyword;
            result.ManufacturerId = this.ManufacturerId;
            result.MaxPrice       = this.MaxPrice;
            result.MinPrice       = this.MinPrice;
            result.SortBy         = this.SortBy;
            result.SortOrder      = this.SortOrder;
            result.VendorId       = this.VendorId;

            return(result);
        }
		public ProductStoreSearchCriteria Clone()
		{
			ProductStoreSearchCriteria result = new ProductStoreSearchCriteria();

			result.CategoryId = this.CategoryId;
			foreach (CustomPropertyValue cpv in this.CustomProperties) {
				CustomPropertyValue cp = cpv.Clone();
				result.CustomProperties.Add(cp);
			}
			result.Keyword = this.Keyword;
			result.ManufacturerId = this.ManufacturerId;
			result.MaxPrice = this.MaxPrice;
			result.MinPrice = this.MinPrice;
			result.SortBy = this.SortBy;
			result.SortOrder = this.SortOrder;
			result.VendorId = this.VendorId;

			return result;
		}