/// <summary> /// Initializes a new instance of the <see cref="UserInventoryUpdater"/> class. /// </summary> /// <param name="userInventory"><see cref="UserInventory"/> that this UserInventoryUpdater will manage.</param> /// <exception cref="ArgumentNullException"><paramref name="userInventory"/> is <c>null</c>.</exception> public UserInventoryUpdater(UserInventory userInventory) { if (userInventory == null) throw new ArgumentNullException("userInventory"); _userInventory = userInventory; }
/// <summary> /// Initializes a new instance of the <see cref="UserInventoryUpdater"/> class. /// </summary> /// <param name="userInventory"><see cref="UserInventory"/> that this UserInventoryUpdater will manage.</param> /// <exception cref="ArgumentNullException"><paramref name="userInventory"/> is <c>null</c>.</exception> public UserInventoryUpdater(UserInventory userInventory) { if (userInventory == null) { throw new ArgumentNullException("userInventory"); } _userInventory = userInventory; }