Table of Contents

Class ShoppingCart

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class ShoppingCart
Inheritance
ShoppingCart
Inherited Members
Extension Methods

Constructors

ShoppingCart()

public ShoppingCart()

Properties

Cart

public List<ShopItem> Cart { get; set; }

Property Value

List<ShopItem>

CartValue

public int CartValue { get; set; }

Property Value

int

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Methods

AddItemToCart(ShopItem)

public void AddItemToCart(ShopItem itemToAdd)

Parameters

itemToAdd ShopItem

ClearCart()

public void ClearCart()