Skip to content

Instantly share code, notes, and snippets.

@talkingdotnet
Created February 27, 2018 05:47
Show Gist options
  • Save talkingdotnet/037dd1a8137f53981706912cf459d3d4 to your computer and use it in GitHub Desktop.
Save talkingdotnet/037dd1a8137f53981706912cf459d3d4 to your computer and use it in GitHub Desktop.
private DataSet DeserializeDataset(string filePath)
{
DataSet ds = new DataSet();
try
{
ds.ReadXmlSchema(filePath);
ds.ReadXml(filePath, XmlReadMode.IgnoreSchema);
WriteToConsole("Dataset deserialized successfully.");
}
catch (Exception ex)
{
WriteToConsole("Error: DeserializeDataset()" + "\n" + ex.ToString());
}
return ds;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment