I have a serialized class (XmlSerializer) to a FileStream like so:
Serialization.XmlRootAttribute(Namespace="]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(Company))]
public partial class Company
{ ...
I deserialize like so:
Company comp = (Company)xmlSer.Deserialize(fstream);
How can I get the Namespace string?
I was messing around with XmlRootAttribute.GetCustomAttribute but I'm out in the weeds with the args for this.
Thanks a lot, Mark
Serialization.XmlRootAttribute(Namespace="]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(Company))]
public partial class Company
{ ...
I deserialize like so:
Company comp = (Company)xmlSer.Deserialize(fstream);
How can I get the Namespace string?
I was messing around with XmlRootAttribute.GetCustomAttribute but I'm out in the weeds with the args for this.
Thanks a lot, Mark