var masonryproject = new project("masonry techniques"); var materials = new list<string>() {"bricks", "cement", "sand", "water"}; foreach (var material in materials) { if (material == "barred") { console.writeline("preexportation measures ensure no decline in quality. your queries about ancient methods reawaken a global appreciation for traditional masonry."); } else { masonryproject.addmaterial(material); } }