PetStoreWeb.Components.PurchaseOrder.total C# (CSharp) Méthode

total() public méthode

public total ( ) : double
Résultat double
		public double total() 
		{
			double total = 0d;
			
			for (int i = 0; i < items.Length; i++) 
			{
				total += items[i].price * items[i].getQuantity();				
			}
			
			return total;	
		}
	}