-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
50 lines (43 loc) · 1.7 KB
/
Program.cs
File metadata and controls
50 lines (43 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using rent_A_car.Entities.Concrete;
using System;
using System.Collections.Generic;
using System.Runtime;
namespace rent_A_car
{
class Program
{
static void Main(string[] args)
{
Product product1 = new Product();
product1.productId = 00001;
product1.productName = "Ford Custom";
product1.productDesription = "Son model ve geniş hacimli bir araçtır.";
product1.productImage = "/images/product1.png";
product1.unitInStock = 50;
product1.productModelYears = 2021;
product1.productPrice = 50.000;
Product product2 = new Product();
product2.productId = 00002;
product2.productName = "Ford Kuga";
product2.productDesription = "Aradığınız her özellik var.";
product2.productImage = "/images/product2.png";
product2.productPrice = 300.000;
product2.unitInStock = 20;
product2.productModelYears = 2010;
Product product3 = new Product();
product3.productId = 0003;
product3.productName = "Renault Kangoo";
product3.productDesription = "Güzel bir aile arabasi";
product3.productImage = "/images/product3.png";
product3.productPrice = 30.000;
product3.unitInStock = 10;
product3.productModelYears = 2001;
List<Product> list = new List<Product>
{
};
String []products= {product1.productName,product2.productName };
Console.WriteLine(products[0].Trim());
Console.ReadKey();
}
}
}