Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Product product1 = new Product();

            product1.Id           = 1;
            product1.CategorId    = 2;
            product1.productName  = "masa";
            product1.UniPrice     = 500;
            product1.UnitsInStock = 3;

            Product product = new Product {
                Id = 2, CategorId = 5, UnitsInStock = 5, productName = "kalem", UniPrice = 35
            };
            //PascalCase   //camelCase  //case sensitive
            ProductManeger productManeger = new ProductManeger();

            productManeger.Add(product1);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Product product1 = new Product();

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

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

            //PascalCase //CamelCase
            ProductManeger productManeger = new ProductManeger();

            productManeger.Add(product1);
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Product product1 = new Product();

            product1.Id          = 1;
            product1.CategoryId  = 2;
            product1.ProductName = "MASA";
            product1.UnitPrice   = 500;
            product1.UnitInStock = 3;

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

            //PascalCase //camelCase
            //case senstive

            ProductManeger productManeger = new ProductManeger();

            productManeger.Add(product1);
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            Product product1 = new Product();

            product1.Id           = 1;
            product1.CategoryId   = 2;
            product1.ProductName  = "Masa";
            product1.UnitePrice   = 500;
            product1.UnitsInStock = 3;

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

            //PscalCase       //camelCase
            //case sensitine - kucuk buyuk harf duyarlı
            ProductManeger productManeger = new ProductManeger();

            productManeger.Add(product1);
            Console.WriteLine(product1.ProductName);
        }