Last active
December 20, 2018 13:17
-
-
Save thorsman99/3ef7cf54aa9359bf01687d68da79e154 to your computer and use it in GitHub Desktop.
DataRow to XML #CSharp #function #conversion #XML
This file contains 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
static string RowToXML(DataRow DRInput) | |
{ | |
DataSet myDS = new DataSet(); | |
myDS.Tables.Add(DRInput.Table.Clone()); | |
myDS.Tables[0].ImportRow(DRInput); | |
return myDS.GetXml(); ; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment