fork download
  1. DataSet ds = new DataSet();
  2. ds.ReadXml(@"..\..\stock.xml");
  3.  
  4. DataTable dt = ds.Tables[0].DefaultView.ToTable(true, "productname", "brandname");
  5. cbProduct.DataSource = dt;
  6. cbProduct.DisplayMember = "productname";
  7.  
  8. cbBrandName.DataSource = dt;
  9. cbBrandName.DisplayMember = "brandname";
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,9): error CS0116: A namespace can only contain types and namespace declarations
prog.cs(2,11): error CS8025: Parsing error
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty