A
AA2e72E
Given
var myFile = (from file in fileList // Most recent file
orderby file.CreationTime descending
select new { file.FullName, fs = file.Length }).First();
- What is the easiest way to serialize myFile? (need the XML to show the
name/value pair for each value)
- What is the easiest way to SOAP serialize myFile? (need the XML to show
the name/value pair for each value as well as the type i.e string for
FullName & int for fs)
I was hoping for the var myFile object to expose a Serialize method but I
can't find one.
Thanks for your help.
var myFile = (from file in fileList // Most recent file
orderby file.CreationTime descending
select new { file.FullName, fs = file.Length }).First();
- What is the easiest way to serialize myFile? (need the XML to show the
name/value pair for each value)
- What is the easiest way to SOAP serialize myFile? (need the XML to show
the name/value pair for each value as well as the type i.e string for
FullName & int for fs)
I was hoping for the var myFile object to expose a Serialize method but I
can't find one.
Thanks for your help.