Hi, I have a class derived from ApplicationException as below (excuse
formatting):
[Serializable()]
public class MyException : ApplicationException {
public string CompanyName {
get {return Application.CompanyName;}
}
public string ProductName {
get {return Application.ProductName;}
}
public string ProductVersion {
get {return Application.ProductVersion;}
}
}
I am serializing it as follows:
IFormatter formatter = new SoapFormatter();
Stream stream = new FileStream(dlgSave.FileName, FileMode.Create,
FileAccess.Write, FileShare.None);
formatter.Serialize(stream, _ex);
stream.Close();
However, the extra properites I have added to the class are not getting
output. How come?
Thanks.