private void button2_Click(object sender, EventArgs e)
{
//read in file data and calculate record number
string csv = File.ReadAllText("File-Path");
int testing = 1;
XDocument doc = ConvertCsvToXml(csv, new[] { "\t" });
//create array of record number
WebService.Function[] xxx = new WebService.Function[1];
recordAmount = 0;
Hi there for some reason in the above code the ConvertCsvToXml line is bringing back an exception saying it does not exist, and the intelisense brings up nothing after typing XDocument.
What can I do to resolve this? There are no errors in my code other than this!
Thanks for your time.
You’ll have to define the ConvertCsvToXml method in the same class as the button2_Click method.