Recent Post

Vòng lặp với key và value trong C#

Tương tự như foreach $key=>$value trong php
                  Dictionary list = new Dictionary {
                    { "PHP version", "php -v" },
                    { "Composer version", "composer -v" },
                    { "Laravel version", "php artisan -v" },
                    { "Cache clear", "php artisan cache:clear" },
                    { "Cache forget", ""}
                };
                foreach (KeyValuePair item in list)
                {
                    createNewRow(dataGridView1, item.Key, item.Value);
                }
  

0 Nhận xét