convert httpresponsemessage to xml c# code example
Example 1: convert from xls to xlsx C#
public static string ConvertXLS_XLSX(FileInfo file)
{
var app = new Microsoft.Office.Interop.Excel.Application();
var xlsFile = file.FullName;
var wb = app.Workbooks.Open(xlsFile);
var xlsxFile = xlsFile + "x";
wb.SaveAs(Filename: xlsxFile, FileFormat: Microsoft.Office.Interop.Excel.XlFileFormat.xlOpenXMLWorkbook);
wb.Close();
app.Quit();
return xlsxFile;
}
Example 2: c# convert ad objectguid to string
new Guid((System.Byte[])this.GUID).ToString()