G
Guest
I defined my own exception type as follows:
public class MyException: ApplicationException
{
public MyExceptionn() : base()
{
}
public MyException(string message) : base(message)
{
}
public MyException(
string message,
Exception innerException) : base(message, innerException)
{
}
}
I do not add any custom fields or properties.
Do I have to apply the [Serializable] custom attribute to the type?
Do I have to define special protected constructor which takes
SerializationInfo
and StreamingContext parameters?
public class MyException: ApplicationException
{
public MyExceptionn() : base()
{
}
public MyException(string message) : base(message)
{
}
public MyException(
string message,
Exception innerException) : base(message, innerException)
{
}
}
I do not add any custom fields or properties.
Do I have to apply the [Serializable] custom attribute to the type?
Do I have to define special protected constructor which takes
SerializationInfo
and StreamingContext parameters?