예제 #1
0
        static void Main(string[] args)
        {
            Product product1 = new Product();

            product1.Id          = 1;
            product1.CategoryId  = 2;
            product1.ProductName = "Masa";
            product1.UnitPrice   = 500;
            product1.UnitInStock = 5;

            Product product2 = new Product {
                Id          = 2, CategoryId = 5, UnitInStock = 5,
                ProductName = "Kalem", UnitPrice = 35,
            };

            ProductManager productManager = new ProductManager();

            productManager.ADD(product1);
            Console.WriteLine(product1.ProductName);

            int sayi = 100;

            productManager.BiseyYap(sayi);
            Console.WriteLine(sayi);
        }