stevebravo
Gebruiker
- Lid geworden
- 16 jan 2010
- Berichten
- 156
Misschien heel simpel, maar waarom worden sommige variabelen hermaakt/gedupliceerd met een underscore zoals in dit voorbeeld?
Code:
class ShoppingCartItem
{
public Int32 ProductId;
public decimal price;
public Int32 quantity;
public decimal total;
//The standard, non-serialization constructor
public ShoppingCartItem(int _productID, decimal _price, int _quantity)
{
productId = _productID;
price = _price;
quantity = _quantity;
total = price * quantity;
}
}
Laatst bewerkt: