Created
February 27, 2018 05:47
-
-
Save talkingdotnet/037dd1a8137f53981706912cf459d3d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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