/// <summary> /// Initializes a new instance of the <see cref="MarketAttribute" /> class. /// </summary> /// <param name="cacheItem">A <see cref="MarketAttributeCacheItem" /> containing attribute data.</param> public MarketAttribute(MarketAttributeCacheItem cacheItem) { Contract.Requires(cacheItem != null); Name = cacheItem.Name; Description = cacheItem.Description; }
/// <summary> /// Initializes a new instance of the <see cref="MarketAttribute"/> class. /// </summary> /// <param name="cacheItem">A <see cref="MarketAttributeCacheItem"/> containing attribute data.</param> public MarketAttribute(MarketAttributeCacheItem cacheItem) { Guard.Argument(cacheItem, nameof(cacheItem)).NotNull(); Name = cacheItem.Name; Description = cacheItem.Description; }