D
Dan Holmes
For instance if i inherit from Exception
public class MyException : Exception
{
public String myVar ;
public MyException (String myVar, String message) : base(message)
{
this.myVar = myVar;
}
}
When this is serialized do i need to write a GetObjectData or add the
[Serializable] attribute? Or is that handled because the base class does?
I want myVar populated when the object is deserialized.
dan
public class MyException : Exception
{
public String myVar ;
public MyException (String myVar, String message) : base(message)
{
this.myVar = myVar;
}
}
When this is serialized do i need to write a GetObjectData or add the
[Serializable] attribute? Or is that handled because the base class does?
I want myVar populated when the object is deserialized.
dan