private void _exportSchemaCodedDomain(string path, CodedDomainType codedDomain) { using (var w = new StreamWriter(path + "\\" + "Coded_Domain_" + codedDomain.Label + ".csv", false)) { w.WriteLine(_codedDomainHeaders); w.Flush(); foreach (NameValueType nameValuePair in codedDomain.NameValue) { w.WriteLine(nameValuePair.Name + "," + nameValuePair.Value); w.Flush(); } } }